mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
fix(sleep): correct cursor placement (#22639)
Just setcursor_mayforce(true) is enough as Nvim uses msg_grid.
This commit is contained in:
@@ -5666,10 +5666,7 @@ static void ex_equal(exarg_T *eap)
|
||||
static void ex_sleep(exarg_T *eap)
|
||||
{
|
||||
if (cursor_valid()) {
|
||||
int n = curwin->w_winrow + curwin->w_wrow - msg_scrolled;
|
||||
if (n >= 0) {
|
||||
ui_cursor_goto(n, curwin->w_wincol + curwin->w_wcol);
|
||||
}
|
||||
setcursor_mayforce(true);
|
||||
}
|
||||
|
||||
long len = eap->line2;
|
||||
|
Reference in New Issue
Block a user