mirror of
https://github.com/neovim/neovim.git
synced 2026-07-10 19:39:38 +00:00
vim-patch:9.1.0397: Wrong display with 'smoothscroll' when changing quickfix list (#28674)
Problem: Wrong display with 'smoothscroll' when changing quickfix list.
Solution: Reset w_skipcol when replacing quickfix list (zeertzjq).
closes: vim/vim#14730
c7a8eb5ff2
This commit is contained in:
@@ -286,6 +286,7 @@ void update_topline(win_T *wp)
|
||||
}
|
||||
wp->w_topline = 1;
|
||||
wp->w_botline = 2;
|
||||
wp->w_skipcol = 0;
|
||||
wp->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP;
|
||||
wp->w_viewport_invalid = true;
|
||||
wp->w_scbind_pos = 1;
|
||||
|
||||
@@ -4195,6 +4195,12 @@ static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int q
|
||||
}
|
||||
}
|
||||
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp) {
|
||||
if (wp->w_buffer == curbuf) {
|
||||
wp->w_skipcol = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Remove all undo information
|
||||
u_clearallandblockfree(curbuf);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user