0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.2707: adding a lot of completions can still be a bit slow

Problem:    Adding a lot of completions can still be a bit slow.
Solution:   Add the check for CP_FAST. (Ben Jackson)
This commit is contained in:
Bram Moolenaar 2021-04-04 15:05:22 +02:00
parent a7511c0f4f
commit ceb0619433
2 changed files with 6 additions and 1 deletions

View File

@ -586,7 +586,10 @@ ins_compl_add(
int dir = (cdir == 0 ? compl_direction : cdir);
int flags = flags_arg;
ui_breakcheck();
if (flags & CP_FAST)
fast_breakcheck();
else
ui_breakcheck();
if (got_int)
return FAIL;
if (len < 0)

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2707,
/**/
2706,
/**/