diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-20 21:14:18 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-21 01:16:31 -0400 |
commit | 3c28d756525d079a6e3a65c0fa9564a0002357fe (patch) | |
tree | d39fa31fc805815252dbb0a22f3a55b629c6a5f8 /src/nvim/edit.h | |
parent | 0e8ee37efdc97fd6c7226ec3563caf93e89e71eb (diff) | |
download | rneovim-3c28d756525d079a6e3a65c0fa9564a0002357fe.tar.gz rneovim-3c28d756525d079a6e3a65c0fa9564a0002357fe.tar.bz2 rneovim-3c28d756525d079a6e3a65c0fa9564a0002357fe.zip |
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.
https://github.com/vim/vim/commit/d9eefe3155277cec71105f52d34a76f7a3237e7f
Diffstat (limited to 'src/nvim/edit.h')
-rw-r--r-- | src/nvim/edit.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/edit.h b/src/nvim/edit.h index 433a941295..92dab37a70 100644 --- a/src/nvim/edit.h +++ b/src/nvim/edit.h @@ -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() */ |