aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/window.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-06-26 08:54:14 +0200
committerGitHub <noreply@github.com>2018-06-26 08:54:14 +0200
commitda6874a7b26976c43115a66180c47d8230dea435 (patch)
tree0d256656422b27b6d31ec78ed2f998f92d90d6bc /src/nvim/api/window.c
parentcafb92487b308b44f38d004c6d1c540f00656021 (diff)
parentcc0d50a2c266a06d38c29c737e8cb31a5855f278 (diff)
downloadrneovim-da6874a7b26976c43115a66180c47d8230dea435.tar.gz
rneovim-da6874a7b26976c43115a66180c47d8230dea435.tar.bz2
rneovim-da6874a7b26976c43115a66180c47d8230dea435.zip
API: nvim_win_set_cursor: set w_set_curswant #8640
This one behaves correctly eg in the presence of unicode. ref #8613
Diffstat (limited to 'src/nvim/api/window.c')
-rw-r--r--src/nvim/api/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c
index b02e5b958d..5281a7c1f4 100644
--- a/src/nvim/api/window.c
+++ b/src/nvim/api/window.c
@@ -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);