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/getchar.c | |
parent | fcd1635a4680d53090baa433996954bfe0642366 (diff) |
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/getchar.c')
-rw-r--r-- | src/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index c8fad1430c..fa8c574d9f 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2453,7 +2453,7 @@ handle_mapping( && State != ASKMORE && State != CONFIRM && !((ctrl_x_mode_not_default() && at_ctrl_x_key()) - || ((compl_cont_status & CONT_LOCAL) + || (compl_status_local() && (tb_c1 == Ctrl_N || tb_c1 == Ctrl_P)))) { #ifdef FEAT_GUI |