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)
diff --git a/src/normal.c b/src/normal.c
index fdbc5c8..4788bc2 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -6788,6 +6788,9 @@
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)