diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-30 14:26:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-30 14:26:18 +0100 |
commit | 9a2c091a748b380efafe60583698c9afcaab1e46 (patch) | |
tree | 9fd1e3baabc53307e56cebe260692a013ee7065e /src/evalfunc.c | |
parent | 7591bb39d58ece38a5fef984a08ea9012616c1f9 (diff) |
patch 8.1.1077: reg_executing() is reset by calling input()v8.1.1077
Problem: reg_executing() is reset by calling input().
Solution: Implement a more generic way to save and restore reg_executing.
(Ozaki Kiichi, closes #4192)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 72ffd52d99..30f98eb663 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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); |