vim-patch:8.2.2704: adding a lot of completions can be a bit slow

Problem:    Adding a lot of completions can be a bit slow.
Solution:   Use fast_breakcheck() instead of ui_breakcheck() when adding a
            list of completions. (Ben Jackson, closes vim/vim#8061)
440cf096fa
This commit is contained in:
Shougo Matsushita
2021-04-05 09:10:43 +09:00
parent 9b2d4ff625
commit 356a35a848
3 changed files with 11 additions and 8 deletions

View File

@@ -1098,7 +1098,7 @@ static void f_complete(typval_T *argvars, typval_T *rettv, FunPtr fptr)
*/
static void f_complete_add(typval_T *argvars, typval_T *rettv, FunPtr fptr)
{
rettv->vval.v_number = ins_compl_add_tv(&argvars[0], 0);
rettv->vval.v_number = ins_compl_add_tv(&argvars[0], 0, false);
}
/*