mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
Improved version of #8613
This one behaves correctly eg in the presence of unicode
This commit is contained in:
@@ -94,7 +94,7 @@ void nvim_win_set_cursor(Window window, ArrayOf(Integer, 2) pos, Error *err)
|
|||||||
check_cursor_col_win(win);
|
check_cursor_col_win(win);
|
||||||
|
|
||||||
// Make sure we stick in this column.
|
// Make sure we stick in this column.
|
||||||
win->w_curswant = (colnr_T)col;
|
win->w_set_curswant = true;
|
||||||
|
|
||||||
// make sure cursor is in visible range even if win != curwin
|
// make sure cursor is in visible range even if win != curwin
|
||||||
update_topline_win(win);
|
update_topline_win(win);
|
||||||
|
Reference in New Issue
Block a user