mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
vim-patch:8.1.1124: insert completion flags are mixed up
Problem: Insert completion flags are mixed up.
Solution: Clean up flags use of ins_compl_add() and cp_flags.
d9eefe3155
This commit is contained in:
@@ -13,6 +13,15 @@
|
||||
#define CPT_USER_DATA 4 // "user data"
|
||||
#define CPT_COUNT 5 // Number of entries
|
||||
|
||||
// values for cp_flags
|
||||
typedef enum {
|
||||
CP_ORIGINAL_TEXT = 1, // the original text when the expansion begun
|
||||
CP_FREE_FNAME = 2, // cp_fname is allocated
|
||||
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_flags_T;
|
||||
|
||||
typedef int (*IndentGetter)(void);
|
||||
|
||||
/* Values for in_cinkeys() */
|
||||
|
Reference in New Issue
Block a user