diff options
author | David Hotham <david.hotham@metaswitch.com> | 2018-06-25 13:44:02 +0100 |
---|---|---|
committer | David Hotham <david.hotham@metaswitch.com> | 2018-06-25 13:44:02 +0100 |
commit | cc0d50a2c266a06d38c29c737e8cb31a5855f278 (patch) | |
tree | 65cb3ac38823bed6281e8ca59354ebbf1d44320c /src | |
parent | 1cbc8301897c09d381074397b82450f81d7854be (diff) | |
download | rneovim-cc0d50a2c266a06d38c29c737e8cb31a5855f278.tar.gz rneovim-cc0d50a2c266a06d38c29c737e8cb31a5855f278.tar.bz2 rneovim-cc0d50a2c266a06d38c29c737e8cb31a5855f278.zip |
Improved version of #8613
This one behaves correctly eg in the presence of unicode
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 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); |