terminal: tickle statusline on entering #8323

This commit is contained in:
raichoo
2018-05-02 23:04:52 +02:00
committed by Justin M. Keyes
parent 3de81ea351
commit 50ec030b26
2 changed files with 5 additions and 6 deletions

View File

@@ -4898,12 +4898,10 @@ win_redr_status_matches (
xfree(buf); xfree(buf);
} }
/* /// Redraw the status line of window `wp`.
* Redraw the status line of window wp. ///
* /// If inversion is possible we use it. Else '=' characters are used.
* If inversion is possible we use it. Else '=' characters are used. static void win_redr_status(win_T *wp)
*/
void win_redr_status(win_T *wp)
{ {
int row; int row;
char_u *p; char_u *p;

View File

@@ -403,6 +403,7 @@ void terminal_enter(void)
// erase the unfocused cursor // erase the unfocused cursor
invalidate_terminal(s->term, s->term->cursor.row, s->term->cursor.row + 1); invalidate_terminal(s->term, s->term->cursor.row, s->term->cursor.row + 1);
showmode(); showmode();
curwin->w_redr_status = true; // For mode() in statusline. #8323
ui_busy_start(); ui_busy_start();
redraw(false); redraw(false);