0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.2686: status line is not updated when going to cmdline mode

Problem:    Status line is not updated when going to cmdline mode.
Solution:   Redraw status lines if 'statusline' is set and going to status
            line mode. (based on patch from Justin M. Keyes et al.,
            closes #8044)
This commit is contained in:
Bram Moolenaar
2021-04-01 18:47:14 +02:00
parent 49c51b825a
commit ce0b75711a
5 changed files with 42 additions and 0 deletions

View File

@@ -1706,6 +1706,15 @@ getcmdline_int(
// and execute commands. Display may be messed up a bit.
if (did_emsg)
redrawcmd();
// Redraw the statusline in case it uses the current mode using the mode()
// function.
if (!cmd_silent && msg_scrolled == 0 && *p_stl != NUL)
{
curwin->w_redr_status = TRUE;
redraw_statuslines();
}
did_emsg = FALSE;
got_int = FALSE;