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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user