mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
fix(sleep): correct cursor placement (#22639)
Just setcursor_mayforce(true) is enough as Nvim uses msg_grid.
This commit is contained in:
@@ -512,8 +512,7 @@ void approximate_botline_win(win_T *wp)
|
||||
int cursor_valid(void)
|
||||
{
|
||||
check_cursor_moved(curwin);
|
||||
return (curwin->w_valid & (VALID_WROW|VALID_WCOL)) ==
|
||||
(VALID_WROW|VALID_WCOL);
|
||||
return (curwin->w_valid & (VALID_WROW|VALID_WCOL)) == (VALID_WROW|VALID_WCOL);
|
||||
}
|
||||
|
||||
// Validate cursor position. Makes sure w_wrow and w_wcol are valid.
|
||||
|
Reference in New Issue
Block a user