0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 #5214, closes #5224)
This commit is contained in:
Bram Moolenaar
2019-11-16 14:19:33 +01:00
parent f4a1d1c054
commit 08f23636ae
3 changed files with 33 additions and 0 deletions

View File

@@ -1175,6 +1175,9 @@ curs_columns(
redraw_later(SOME_VALID);
#endif
// 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;
}