Mercurial > vim
diff src/ex_docmd.c @ 15973:393a9a3a2da2 v8.1.0992
patch 8.1.0992: a :normal command resets the reg_executing() result
commit https://github.com/vim/vim/commit/cce713ddcc0c9ab29926c28e287cbb587a959b08
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 4 11:40:12 2019 +0100
patch 8.1.0992: a :normal command resets the reg_executing() result
Problem: A :normal command while executing a register resets the
reg_executing() result.
Solution: Save and restore reg_executing. (closes #4066)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Mar 2019 11:45:07 +0100 |
parents | 7fad90423bd2 |
children | 4850744dc181 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -10260,6 +10260,7 @@ save_current_state(save_state_T *sst) sst->save_insertmode = p_im; sst->save_finish_op = finish_op; sst->save_opcount = opcount; + sst->save_reg_executing = reg_executing; msg_scroll = FALSE; /* no msg scrolling in Normal mode */ restart_edit = 0; /* don't go to Insert mode */ @@ -10285,6 +10286,7 @@ restore_current_state(save_state_T *sst) p_im = sst->save_insertmode; finish_op = sst->save_finish_op; opcount = sst->save_opcount; + reg_executing = sst->save_reg_executing; msg_didout |= sst->save_msg_didout; /* don't reset msg_didout now */ /* Restore the state (needed when called from a function executed for