mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-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 vim/vim#4192)
9a2c091a74
This commit is contained in:
@@ -1233,6 +1233,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
|
||||
int did_esilent = 0;
|
||||
int did_sandbox = FALSE;
|
||||
cmdmod_T save_cmdmod;
|
||||
const int save_reg_executing = reg_executing;
|
||||
int ni; /* set when Not Implemented */
|
||||
char_u *cmd;
|
||||
int address_count = 1;
|
||||
@@ -2298,6 +2299,7 @@ doend:
|
||||
}
|
||||
|
||||
cmdmod = save_cmdmod;
|
||||
reg_executing = save_reg_executing;
|
||||
|
||||
if (save_msg_silent != -1) {
|
||||
/* messages could be enabled for a serious error, need to check if the
|
||||
|
Reference in New Issue
Block a user