mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
vim-patch:9.0.2105: skipcol not reset when topline changed (#26042)
Problem: Skipcol is not reset when topline changed scrolling cursor to top
Solution: reset skipcol
closes: vim/vim#13528
bb800a7907
This commit is contained in:
@@ -1816,7 +1816,9 @@ void scroll_cursor_top(int min_scroll, int always)
|
||||
}
|
||||
}
|
||||
check_topfill(curwin, false);
|
||||
if (curwin->w_topline == curwin->w_cursor.lnum) {
|
||||
if (curwin->w_topline != old_topline) {
|
||||
reset_skipcol(curwin);
|
||||
} else if (curwin->w_topline == curwin->w_cursor.lnum) {
|
||||
validate_virtcol();
|
||||
if (curwin->w_skipcol >= curwin->w_virtcol) {
|
||||
// TODO(vim): if the line doesn't fit may optimize w_skipcol instead
|
||||
|
Reference in New Issue
Block a user