mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
revert: "refactor: Remove allow_keys global (#6346)"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user