summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-19 11:38:24 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-19 11:38:24 +0100
commita653e53b1f4ba08de0dbcea06288cf0cc1c6e752 (patch)
treef4b9c57d97d42e2451ebb71cd35a77a787a36534 /src/ex_docmd.c
parentbac9a9e5c233dcf9cf734c61e4e4311fe57eccd1 (diff)
patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdlinev8.2.4789
Problem: The cursor may be in the in wrong place when using :redraw while editing the cmdline. Solution: When editing the command line let :redraw update the command line too. (closes #10210)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 58df97a9aa..5c86cee45b 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8323,6 +8323,10 @@ ex_redraw(exarg_T *eap)
// No need to wait after an intentional redraw.
need_wait_return = FALSE;
+ // When invoked from a callback or autocmd the command line may be active.
+ if (State & CMDLINE)
+ redrawcmdline();
+
out_flush();
}