From ceb06194337f1a9d30cd12edb7b0dc51830b9cb7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 4 Apr 2021 15:05:22 +0200 Subject: 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) --- src/insexpand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/insexpand.c') 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) -- cgit v1.2.3