Mercurial > vim
diff src/window.c @ 18253:783f796a1426 v8.1.2121
patch 8.1.2121: mode is not updated when switching to terminal
Commit: https://github.com/vim/vim/commit/a27e1dcddc9e3914ab34b164f71c51b72903b00b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 7 22:27:36 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 07 Oct 2019 22:30:04 +0200 |
parents | 1868ec23360e |
children | 3f51e026de28 |
line wrap: on
line diff
--- 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 */