diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-03-14 12:47:49 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-04-26 19:17:17 -0400 |
commit | 5b3ec39df379ae01d6046689ffd9fb265196d21a (patch) | |
tree | 7bb8846d4f426e1096f4f459915555586ad71b1c /src/nvim/ex_docmd.h | |
parent | 86d0f67c292ed51a981b643cf80a851f92c2b4da (diff) | |
download | rneovim-5b3ec39df379ae01d6046689ffd9fb265196d21a.tar.gz rneovim-5b3ec39df379ae01d6046689ffd9fb265196d21a.tar.bz2 rneovim-5b3ec39df379ae01d6046689ffd9fb265196d21a.zip |
vim-patch:8.0.1139: using window toolbar changes state
Problem: Using window toolbar changes state.
Solution: Always execute window toolbar actions in Normal mode.
https://github.com/vim/vim/commit/a21a6a9ade7bec3a07992d4d900d4ce82eeb8a29
Diffstat (limited to 'src/nvim/ex_docmd.h')
-rw-r--r-- | src/nvim/ex_docmd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.h b/src/nvim/ex_docmd.h index cff350de08..f6bd2adcd5 100644 --- a/src/nvim/ex_docmd.h +++ b/src/nvim/ex_docmd.h @@ -20,6 +20,20 @@ #define EXMODE_NORMAL 1 #define EXMODE_VIM 2 +// Structure used to save the current state. Used when executing Normal mode +// commands while in any other mode. +typedef struct { + int save_msg_scroll; + int save_restart_edit; + int save_msg_didout; + int save_State; + int save_insertmode; + bool save_finish_op; + long save_opcount; + int save_reg_executing; + tasave_T tabuf; +} save_state_T; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "ex_docmd.h.generated.h" #endif |