Skip to content

Commit

Permalink
patch 8.2.2707: adding a lot of completions can still be a bit slow
Browse files Browse the repository at this point in the history
Problem:    Adding a lot of completions can still be a bit slow.
Solution:   Add the check for CP_FAST. (Ben Jackson)
  • Loading branch information
brammool committed Apr 4, 2021
1 parent a7511c0 commit ceb0619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/insexpand.c
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2707,
/**/
2706,
/**/
Expand Down

0 comments on commit ceb0619

Please sign in to comment.