From 3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede Mon Sep 17 00:00:00 2001 From: raichoo Date: Thu, 10 May 2018 14:55:07 +0200 Subject: UI: redraw statusline when entering cmdline (#8347) --- src/nvim/ex_getln.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index e1198d6f1c..96388a2a9d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -347,6 +347,13 @@ static uint8_t *command_line_enter(int firstc, long count, int indent) redrawcmd(); } + // redraw the statusline for statuslines that display the current mode + // using the mode() function. + if (KeyTyped) { + curwin->w_redr_status = true; + redraw_statuslines(); + } + did_emsg = false; got_int = false; s->state.check = command_line_check; -- cgit