Mercurial > vim
diff src/ex_docmd.c @ 16144:4850744dc181 v8.1.1077
patch 8.1.1077: reg_executing() is reset by calling input()
commit https://github.com/vim/vim/commit/9a2c091a748b380efafe60583698c9afcaab1e46
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 30 14:26:18 2019 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Mar 2019 14:30:05 +0100 |
parents | 393a9a3a2da2 |
children | cd5c83115ec6 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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) {