vim-patch:8.0.0035 (#5609)

Problem:    Order of matches for 'omnifunc' is messed up. (Danny Su)
Solution:   Do not set compl_curr_match when called from complete_check().
            (closes vim/vim#1168)

472e85970e
This commit is contained in:
Shougo
2016-11-16 01:59:55 +09:00
committed by Justin M. Keyes
parent 10c72cd365
commit c69cfd7d1c
7 changed files with 143 additions and 94 deletions

View File

@@ -8010,7 +8010,7 @@ static void f_complete_check(typval_T *argvars, typval_T *rettv, FunPtr fptr)
int saved = RedrawingDisabled;
RedrawingDisabled = 0;
ins_compl_check_keys(0);
ins_compl_check_keys(0, true);
rettv->vval.v_number = compl_interrupted;
RedrawingDisabled = saved;
}