vim-patch:8.2.2704: adding a lot of completions can be a bit slow

Problem:    Adding a lot of completions can be a bit slow.
Solution:   Use fast_breakcheck() instead of ui_breakcheck() when adding a
            list of completions. (Ben Jackson, closes vim/vim#8061)
440cf096fa
This commit is contained in:
Shougo Matsushita
2021-04-05 09:10:43 +09:00
parent 9b2d4ff625
commit 356a35a848
3 changed files with 11 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ typedef enum {
CP_CONT_S_IPOS = 4, // use CONT_S_IPOS for compl_cont_status
CP_EQUAL = 8, // ins_compl_equal() always returns true
CP_ICASE = 16, // ins_compl_equal ignores case
CP_FAST = 32, // use fast_breakcheck instead of ui_breakcheck
} cp_flags_T;
typedef int (*IndentGetter)(void);