0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves

Problem:    When 'insermode' is set :edit from <Cmd> mapping misbehaves.
Solution:   Don't set "need_start_insertmode" when already in Insert mode.
            (closes #10116)
This commit is contained in:
zeertzjq
2022-04-08 11:56:14 +01:00
committed by Bram Moolenaar
parent ac72c21da6
commit 3a56b6d405
3 changed files with 26 additions and 1 deletions

View File

@@ -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