mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
fix(api): do not update grid position in nvim_win_set_cursor (#28235)
Revert commit c971f538ab
.
Forcing grid cursor position will need a new API like originally proposed in #27858.
This commit is contained in:
@@ -148,7 +148,7 @@ void nvim_win_set_cursor(Window window, ArrayOf(Integer, 2) pos, Error *err)
|
||||
switchwin_T switchwin;
|
||||
switch_win(&switchwin, win, NULL, true);
|
||||
update_topline(curwin);
|
||||
setcursor_mayforce(true);
|
||||
validate_cursor(curwin);
|
||||
restore_win(&switchwin, true);
|
||||
|
||||
redraw_later(win, UPD_VALID);
|
||||
|
Reference in New Issue
Block a user