From 3c28d756525d079a6e3a65c0fa9564a0002357fe Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 20 Aug 2019 21:14:18 -0400 Subject: 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 --- src/nvim/edit.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/nvim/edit.h') 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() */ -- cgit