vim-patch:9.0.0517: when at the command line :redrawstatus does not work well (#20266)

Problem:    When at the command line :redrawstatus does not work well.
Solution:   Only update the statuslines instead of the screen. (closes vim/vim#11180)
320d910064
This commit is contained in:
zeertzjq
2022-09-21 06:47:29 +08:00
committed by GitHub
parent 585ab2564a
commit ad1f353fe1
3 changed files with 64 additions and 10 deletions

View File

@@ -6094,13 +6094,17 @@ static void ex_redrawstatus(exarg_T *eap)
} else {
status_redraw_curbuf();
}
if (msg_scrolled) {
if (msg_scrolled && (State & MODE_CMDLINE)) {
return; // redraw later
}
RedrawingDisabled = 0;
p_lz = false;
update_screen(VIsual_active ? UPD_INVERTED : 0);
if (State & MODE_CMDLINE) {
redraw_statuslines();
} else {
update_screen(VIsual_active ? UPD_INVERTED : 0);
}
RedrawingDisabled = r;
p_lz = p;
ui_flush();