summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-04 15:05:22 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-04 15:05:22 +0200
commitceb06194337f1a9d30cd12edb7b0dc51830b9cb7 (patch)
tree7828bc72ee281ca049a7ff205251452941aed621 /src/insexpand.c
parenta7511c0f4f779140e8b893be506ecffd0ededf04 (diff)
patch 8.2.2707: adding a lot of completions can still be a bit slowv8.2.2707
Problem: Adding a lot of completions can still be a bit slow. Solution: Add the check for CP_FAST. (Ben Jackson)
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 8f10866dcf..9bbf1233cf 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)