mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
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)
ceb0619433
This commit is contained in:
@@ -2319,7 +2319,11 @@ static int ins_compl_add(char_u *const str, int len,
|
|||||||
const Direction dir = (cdir == kDirectionNotSet ? compl_direction : cdir);
|
const Direction dir = (cdir == kDirectionNotSet ? compl_direction : cdir);
|
||||||
int flags = flags_arg;
|
int flags = flags_arg;
|
||||||
|
|
||||||
|
if (flags & CP_FAST) {
|
||||||
|
fast_breakcheck();
|
||||||
|
} else {
|
||||||
os_breakcheck();
|
os_breakcheck();
|
||||||
|
}
|
||||||
#define FREE_CPTEXT(cptext, cptext_allocated) \
|
#define FREE_CPTEXT(cptext, cptext_allocated) \
|
||||||
do { \
|
do { \
|
||||||
if (cptext != NULL && cptext_allocated) { \
|
if (cptext != NULL && cptext_allocated) { \
|
||||||
|
Reference in New Issue
Block a user