diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-19 21:16:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-19 21:16:12 +0100 |
commit | bcd6924245c0e73d8be256282656c06aaf91f17c (patch) | |
tree | 45d89a7e9af86b0382296b7e918e62e70a673235 /src/ex_docmd.c | |
parent | a2b91036d12e1b406ed5d17bf03f8d1ed05221f6 (diff) |
patch 9.0.0507: cmdline cleared when using :redrawstatus in CmdlineChangedv9.0.0507
Problem: Command line cleared when using :redrawstatus in CmdlineChanged
autocommand event.
Solution: Postpone the redraw. (closes #11162)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 814f1b6f8a..3076d5344b 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; |