1
0
forked from aniani/vim

patch 8.2.5109: mode not updated after CTRL-O CTRL-C in Insert mode

Problem:    Mode not updated after CTRL-O CTRL-C in Insert mode.
Solution:   Set redraw_mode and use it. (closes #10581)
This commit is contained in:
Bram Moolenaar
2022-06-16 13:04:45 +01:00
parent 308660bd26
commit 7a1d32809b
5 changed files with 28 additions and 3 deletions

View File

@@ -6788,6 +6788,9 @@ nv_esc(cmdarg_T *cap)
msg(_("Type :qa and press <Enter> to exit Vim"));
}
if (restart_edit != 0)
redraw_mode = TRUE; // remove "-- (insert) --"
// Don't reset "restart_edit" when 'insertmode' is set, it won't be
// set again below when halfway a mapping.
if (!p_im)