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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user