API: nvim_win_set_cursor: set w_set_curswant #8640

This one behaves correctly eg in the presence of unicode.

ref #8613
This commit is contained in:
Justin M. Keyes 2018-06-26 08:54:14 +02:00 committed by GitHub
commit da6874a7b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ void nvim_win_set_cursor(Window window, ArrayOf(Integer, 2) pos, Error *err)
check_cursor_col_win(win);
// 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
update_topline_win(win);