summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 814f1b6f8..3076d5344 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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;