0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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:
Bram Moolenaar
2019-03-30 14:26:18 +01:00
parent 7591bb39d5
commit 9a2c091a74
4 changed files with 28 additions and 8 deletions

View File

@@ -1699,6 +1699,7 @@ do_one_cmd(
exarg_T ea; /* Ex command arguments */
int save_msg_scroll = msg_scroll;
cmdmod_T save_cmdmod;
int save_reg_executing = reg_executing;
int ni; /* set when Not Implemented */
char_u *cmd;
@@ -2579,6 +2580,7 @@ doend:
free_cmdmod();
cmdmod = save_cmdmod;
reg_executing = save_reg_executing;
if (ea.save_msg_silent != -1)
{