mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
patch 8.1.1077: reg_executing() is reset by calling input()
Problem: reg_executing() is reset by calling input(). Solution: Implement a more generic way to save and restore reg_executing. (Ozaki Kiichi, closes #4192)
This commit is contained in:
@@ -4848,7 +4848,6 @@ f_getchar(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
varnumber_T n;
|
||||
int error = FALSE;
|
||||
int save_reg_executing = reg_executing;
|
||||
|
||||
#ifdef MESSAGE_QUEUE
|
||||
// vpeekc() used to check for messages, but that caused problems, invoking
|
||||
@@ -4883,7 +4882,6 @@ f_getchar(typval_T *argvars, typval_T *rettv)
|
||||
}
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
reg_executing = save_reg_executing;
|
||||
|
||||
set_vim_var_nr(VV_MOUSE_WIN, 0);
|
||||
set_vim_var_nr(VV_MOUSE_WINID, 0);
|
||||
|
Reference in New Issue
Block a user