0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0507: cmdline cleared when using :redrawstatus in CmdlineChanged

Problem:    Command line cleared when using :redrawstatus in CmdlineChanged
            autocommand event.
Solution:   Postpone the redraw. (closes #11162)
This commit is contained in:
Bram Moolenaar
2022-09-19 21:16:12 +01:00
parent a2b91036d1
commit bcd6924245
4 changed files with 34 additions and 2 deletions

View File

@@ -8427,12 +8427,15 @@ ex_redrawstatus(exarg_T *eap UNUSED)
int r = RedrawingDisabled;
int p = p_lz;
RedrawingDisabled = 0;
p_lz = FALSE;
if (eap->forceit)
status_redraw_all();
else
status_redraw_curbuf();
if (State & MODE_CMDLINE)
return; // redraw later
RedrawingDisabled = 0;
p_lz = FALSE;
update_screen(VIsual_active ? UPD_INVERTED : 0);
RedrawingDisabled = r;
p_lz = p;