]> granicus.if.org Git - vim/commitdiff
patch 8.2.2707: adding a lot of completions can still be a bit slow v8.2.2707
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Apr 2021 13:05:22 +0000 (15:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Apr 2021 13:05:22 +0000 (15:05 +0200)
Problem:    Adding a lot of completions can still be a bit slow.
Solution:   Add the check for CP_FAST. (Ben Jackson)

src/insexpand.c
src/version.c

index 8f10866dcfe51124cf4fe0a1caa5533190b07e3b..9bbf1233cfc7e909ff731fe67cfad0df23d8c0b9 100644 (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)
index 92e3b4c1a83bc320de5f2f4b4574797516422bab..754e6072fc879ad0c0b645981fbef2a02feafc03 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2707,
 /**/
     2706,
 /**/