diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-08 11:56:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-08 11:56:14 +0100 |
commit | 3a56b6d405fc0f1ca928b77382f97d0c552bea64 (patch) | |
tree | 14723611ebb679b54619d713c26a80c9a9696206 /src/ex_cmds.c | |
parent | ac72c21da696cf6c31630a9e5ff4c0d3e2049c11 (diff) | |
download | vim-git-3a56b6d405fc0f1ca928b77382f97d0c552bea64.tar.gz |
patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehavesv8.2.4711
Problem: When 'insermode' is set :edit from <Cmd> mapping misbehaves.
Solution: Don't set "need_start_insertmode" when already in Insert mode.
(closes #10116)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 8cdac4b74..50829be70 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3182,7 +3182,7 @@ do_ecmd( redraw_curbuf_later(NOT_VALID); // redraw this buffer later } - if (p_im) + if (p_im && (State & INSERT) == 0) need_start_insertmode = TRUE; #ifdef FEAT_AUTOCHDIR |