mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user