diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-08 20:17:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 20:17:25 +0800 |
commit | 56ee7c29ab30c893b2a708277d83943f1455e52a (patch) | |
tree | b24c7f3851945c2a389ed67170bc162681358637 /src/nvim/ex_cmds.c | |
parent | 2c7dc648ca796786b4847771c1df71dea20a1774 (diff) | |
parent | b099bb1f2f5c294b4c73e262dc435a3318e9d523 (diff) | |
download | rneovim-56ee7c29ab30c893b2a708277d83943f1455e52a.tar.gz rneovim-56ee7c29ab30c893b2a708277d83943f1455e52a.tar.bz2 rneovim-56ee7c29ab30c893b2a708277d83943f1455e52a.zip |
Merge pull request #18038 from zeertzjq/vim-8.2.4711
vim-patch:8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 4e98319723..98aabe89b3 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2875,7 +2875,7 @@ int do_ecmd(int fnum, char_u *ffname, char_u *sfname, exarg_T *eap, linenr_T new redraw_curbuf_later(NOT_VALID); // redraw this buffer later } - if (p_im) { + if (p_im && (State & INSERT) == 0) { need_start_insertmode = true; } |