0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdline

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)
This commit is contained in:
Bram Moolenaar
2022-04-19 11:38:24 +01:00
parent bac9a9e5c2
commit a653e53b1f
5 changed files with 44 additions and 0 deletions

View File

@@ -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();
}