From: Bram Moolenaar Date: Sun, 4 Apr 2021 13:05:22 +0000 (+0200) Subject: patch 8.2.2707: adding a lot of completions can still be a bit slow X-Git-Tag: v8.2.2707 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ceb06194337f1a9d30cd12edb7b0dc51830b9cb7;p=vim 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) --- diff --git a/src/insexpand.c b/src/insexpand.c index 8f10866dc..9bbf1233c 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -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) diff --git a/src/version.c b/src/version.c index 92e3b4c1a..754e6072f 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2707, /**/ 2706, /**/