From a27e1dcddc9e3914ab34b164f71c51b72903b00b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 7 Oct 2019 22:27:36 +0200 Subject: 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) --- src/window.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/window.c') 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 */ -- cgit v1.2.1