summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-07 22:27:36 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-07 22:27:36 +0200
commita27e1dcddc9e3914ab34b164f71c51b72903b00b (patch)
treea937e011929bcc61facb08dcf272074ddeb8f806 /src/window.c
parent1614a14901558ca091329315d14a7d5e1b53aa47 (diff)
downloadvim-git-a27e1dcddc9e3914ab34b164f71c51b72903b00b.tar.gz
patch 8.1.2121: mode is not updated when switching to terminalv8.1.2121
Problem: Mode is not updated when switching to terminal in Insert mode. Solution: Redraw the mode when entering a terminal window. (Jason Franklin)
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 6416e0187..6174c02fd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4654,6 +4654,9 @@ win_enter_ext(
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 */