diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-04-21 02:15:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 08:15:18 +0800 |
commit | 344906a08f0972108eb912c87af32b275ecf318e (patch) | |
tree | 6eb6b897b1a1c0082c6ce8c9986082983bb08ada /src | |
parent | 9e1bbb9813e0ea4e37f6325fe00e8f43617ef912 (diff) | |
download | rneovim-344906a08f0972108eb912c87af32b275ecf318e.tar.gz rneovim-344906a08f0972108eb912c87af32b275ecf318e.tar.bz2 rneovim-344906a08f0972108eb912c87af32b275ecf318e.zip |
fix(api): do not update grid position in nvim_win_set_cursor (#28235)
Revert commit c971f538ab87b537ae4c97bd44167661c5691a2d.
Forcing grid cursor position will need a new API like originally proposed in #27858.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c index 08ecca1380..54a19513db 100644 --- a/src/nvim/api/window.c +++ b/src/nvim/api/window.c @@ -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); |