diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-27 09:03:09 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-29 15:51:04 +0800 |
commit | f6afc7c3246db6e5bd8feab717b3c0dbf0226803 (patch) | |
tree | 533dc9a6727f66e9a64fd4a129ea87c0c7e0cc5b /src/nvim/eval | |
parent | d531ef6813919dd6df8ca6927cd99ec3c0a65635 (diff) | |
download | rneovim-f6afc7c3246db6e5bd8feab717b3c0dbf0226803.tar.gz rneovim-f6afc7c3246db6e5bd8feab717b3c0dbf0226803.tar.bz2 rneovim-f6afc7c3246db6e5bd8feab717b3c0dbf0226803.zip |
revert: "refactor: Remove allow_keys global (#6346)"
Diffstat (limited to 'src/nvim/eval')
-rw-r--r-- | src/nvim/eval/funcs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 00d725d393..dfdabd511e 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -2975,6 +2975,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv) bool error = false; no_mapping++; + allow_keys++; for (;;) { // Position the cursor. Needed after a message that ends in a space, // or if event processing caused a redraw. @@ -3012,6 +3013,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv) break; } no_mapping--; + allow_keys--; set_vim_var_nr(VV_MOUSE_WIN, 0); set_vim_var_nr(VV_MOUSE_WINID, 0); |