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/digraph.c | |
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/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index 0e148543aa..2a6ccce79e 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -1513,8 +1513,10 @@ char_u *get_digraph_for_char(int val_arg) int get_digraph(bool cmdline) { no_mapping++; + allow_keys++; int c = plain_vgetc(); no_mapping--; + allow_keys--; if (c != ESC) { // ESC cancels CTRL-K @@ -1531,8 +1533,10 @@ int get_digraph(bool cmdline) add_to_showcmd(c); } no_mapping++; + allow_keys++; int cc = plain_vgetc(); no_mapping--; + allow_keys--; if (cc != ESC) { // ESC cancels CTRL-K |