patch 8.1.2121: mode is not updated when switching to terminal
Problem: Mode is not updated when switching to terminal in Insert mode.
Solution: Redraw the mode when entering a terminal window. (Jason Franklin)
diff --git a/src/window.c b/src/window.c
index 6416e01..6174c02 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4654,6 +4654,9 @@
maketitle();
#endif
curwin->w_redr_status = TRUE;
+ if (bt_terminal(wp->w_buffer))
+ // terminal is likely in another mode
+ redraw_mode = TRUE;
redraw_tabline = TRUE;
if (restart_edit)
redraw_later(VALID); /* causes status line redraw */