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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user