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:
zeertzjq
2024-05-09 06:11:56 +08:00
committed by GitHub
parent 064f3e42e8
commit e4e230a0cd
4 changed files with 165 additions and 16 deletions

View File

@@ -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);
}