diff options
author | Matthew Malcomson <hardenedapple@gmail.com> | 2017-03-25 14:43:19 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-25 15:43:19 +0100 |
commit | 098e91400eb06d29c31264ba973ea8a563703059 (patch) | |
tree | 66bb3ab14c34d5e1078ff4554636de16c3c6e4d4 /src/nvim/eval.c | |
parent | 0cd829161a3f6aa7ed9737cc1c8462067812c9c5 (diff) | |
download | rneovim-098e91400eb06d29c31264ba973ea8a563703059.tar.gz rneovim-098e91400eb06d29c31264ba973ea8a563703059.tar.bz2 rneovim-098e91400eb06d29c31264ba973ea8a563703059.zip |
refactor: Remove allow_keys global (#6346)
* The allow_keys global is unused in nvim, remove it
* clint
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 8f52717252..d49fcbf17e 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10596,8 +10596,7 @@ static void f_getchar(typval_T *argvars, typval_T *rettv, FunPtr fptr) varnumber_T n; int error = FALSE; - ++no_mapping; - ++allow_keys; + no_mapping++; for (;; ) { // Position the cursor. Needed after a message that ends in a space, // or if event processing caused a redraw. @@ -10630,8 +10629,7 @@ static void f_getchar(typval_T *argvars, typval_T *rettv, FunPtr fptr) continue; break; } - --no_mapping; - --allow_keys; + no_mapping--; vimvars[VV_MOUSE_WIN].vv_nr = 0; vimvars[VV_MOUSE_WINID].vv_nr = 0; |