aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-26 20:56:33 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-05-26 20:58:57 -0400
commitb2a11515b2cf6923dd0c1a36efe22aabf6bc582c (patch)
tree2d59638ea24d1c25921929eb1d0e7fc738074988 /src/nvim/ex_docmd.c
parent23936115880ba3c9e716f9c3b5d7b89453cd65fc (diff)
downloadrneovim-b2a11515b2cf6923dd0c1a36efe22aabf6bc582c.tar.gz
rneovim-b2a11515b2cf6923dd0c1a36efe22aabf6bc582c.tar.bz2
rneovim-b2a11515b2cf6923dd0c1a36efe22aabf6bc582c.zip
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) https://github.com/vim/vim/commit/9a2c091a748b380efafe60583698c9afcaab1e46
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 527120ae9f..f55062af53 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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