changeset 24333:47d55d8a93c9 v8.2.2707

patch 8.2.2707: adding a lot of completions can still be a bit slow Commit: https://github.com/vim/vim/commit/ceb06194337f1a9d30cd12edb7b0dc51830b9cb7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 4 15:05:22 2021 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Apr 2021 15:15:04 +0200
parents ea3df9efc2f7
children a6b803f72ff7
files src/insexpand.c src/version.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2707,
+/**/
     2706,
 /**/
     2705,