mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
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 vim/vim#10581)
7a1d32809b
This commit is contained in:
@@ -1284,7 +1284,7 @@ static void normal_redraw(NormalState *s)
|
||||
update_screen(INVERTED);
|
||||
} else if (must_redraw) {
|
||||
update_screen(0);
|
||||
} else if (redraw_cmdline || clear_cmdline) {
|
||||
} else if (redraw_cmdline || clear_cmdline || redraw_mode) {
|
||||
showmode();
|
||||
}
|
||||
|
||||
@@ -6930,6 +6930,10 @@ static void nv_esc(cmdarg_T *cap)
|
||||
}
|
||||
}
|
||||
|
||||
if (restart_edit != 0) {
|
||||
redraw_mode = true; // remove "-- (insert) --"
|
||||
}
|
||||
|
||||
restart_edit = 0;
|
||||
|
||||
if (cmdwin_type != 0) {
|
||||
|
Reference in New Issue
Block a user