0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0517: when at the command line :redrawstatus does not work well

Problem:    When at the command line :redrawstatus does not work well.
Solution:   Only update the statuslines instead of the screen. (closes #11180)
This commit is contained in:
zeertzjq
2022-09-20 17:12:13 +01:00
committed by Bram Moolenaar
parent ccfaa07591
commit 320d910064
8 changed files with 45 additions and 7 deletions

View File

@@ -8431,12 +8431,15 @@ ex_redrawstatus(exarg_T *eap UNUSED)
status_redraw_all();
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;
out_flush();