diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-08 07:51:29 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-08 18:31:46 -0400 |
commit | 818e794f12171ab0fd62152e7d197da7bc43535f (patch) | |
tree | be92ec0b4186c9f34ff521fcbaf319a23664f29f /src/nvim/move.c | |
parent | 910bbc3cca796f7fa941e0f6176cd0061de0e01c (diff) | |
download | rneovim-818e794f12171ab0fd62152e7d197da7bc43535f.tar.gz rneovim-818e794f12171ab0fd62152e7d197da7bc43535f.tar.bz2 rneovim-818e794f12171ab0fd62152e7d197da7bc43535f.zip |
vim-patch:8.1.2303: cursor in wrong position after horizontal scroll
Problem: Cursor in wrong position after horizontal scroll.
Solution: Set w_valid_leftcol. (closes vim/vim#5214, closes vim/vim#5224)
https://github.com/vim/vim/commit/08f23636aef595f4cc061dfee8248dca97df16b3
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 8a8a639a52..4e9d42ed7b 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -943,6 +943,9 @@ void curs_columns( redraw_later(SOME_VALID); } + // now w_leftcol is valid, avoid check_cursor_moved() thinking otherwise + curwin->w_valid_leftcol = curwin->w_leftcol; + curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL; } |