fix(cmdline): don't redraw 'tabline' in Ex mode (#24123)

Redrawing of 'statusline' and 'winbar' are actually already inhibited by
RedawingDisabled in Ex mode.

In Vim there is a check for `msg_scrolled == 0` (which is false in Ex
mode) since Vim doesn't have msgsep. Add a `!exmode_active` check here
in Nvim instead.
This commit is contained in:
zeertzjq
2023-06-23 06:40:26 +08:00
committed by GitHub
parent 12c2c16acf
commit 3688735c2b
2 changed files with 40 additions and 1 deletions

View File

@@ -791,7 +791,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent, bool clea
// Redraw the statusline in case it uses the current mode using the mode()
// function.
if (!cmd_silent) {
if (!cmd_silent && !exmode_active) {
bool found_one = false;
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {