diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-01-04 17:01:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-04 17:01:44 +0000 |
commit | d94fbfc74a8b8073e7a256c95fa6f39fc527c726 (patch) | |
tree | 47e277eeb7ebbf5fe2a6e0dfbd30393eab6b5c7c /src/globals.h | |
parent | fcd1635a4680d53090baa433996954bfe0642366 (diff) | |
download | vim-git-d94fbfc74a8b8073e7a256c95fa6f39fc527c726.tar.gz |
patch 8.2.4001: insert complete code uses global variablesv8.2.4001
Problem: Insert complete code uses global variables.
Solution: Make variables local to the file and use accessor functions.
(Yegappan Lakshmanan, closes #9470)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/globals.h b/src/globals.h index cdad35360..b258aec12 100644 --- a/src/globals.h +++ b/src/globals.h @@ -163,23 +163,6 @@ EXTERN colnr_T dollar_vcol INIT(= -1); * Variables for Insert mode completion. */ -// Length in bytes of the text being completed (this is deleted to be replaced -// by the match.) -EXTERN int compl_length INIT(= 0); - -// List of flags for method of completion. -EXTERN int compl_cont_status INIT(= 0); -# define CONT_ADDING 1 // "normal" or "adding" expansion -# define CONT_INTRPT (2 + 4) // a ^X interrupted the current expansion - // it's set only iff N_ADDS is set -# define CONT_N_ADDS 4 // next ^X<> will add-new or expand-current -# define CONT_S_IPOS 8 // next ^X<> will set initial_pos? - // if so, word-wise-expansion will set SOL -# define CONT_SOL 16 // pattern includes start of line, just for - // word-wise expansion, not set for ^X^L -# define CONT_LOCAL 32 // for ctrl_x_mode 0, ^X^P/^X^N do a local - // expansion, (eg use complete=.) - EXTERN char_u *edit_submode INIT(= NULL); // msg for CTRL-X submode EXTERN char_u *edit_submode_pre INIT(= NULL); // prepended to edit_submode EXTERN char_u *edit_submode_extra INIT(= NULL);// appended to edit_submode |