0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.1.0397: Wrong display with 'smoothscroll' when changing quickfix list

Problem:  Wrong display with 'smoothscroll' when changing quickfix list.
Solution: Reset w_skipcol when replacing quickfix list (zeertzjq).

closes: #14730

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-05-08 20:22:40 +02:00
committed by Christian Brabandt
parent 6a4ea471d2
commit c7a8eb5ff2
9 changed files with 155 additions and 0 deletions

View File

@@ -4867,6 +4867,9 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid)
if (old_last == NULL)
{
win_T *wp;
tabpage_T *tp;
if (buf != curbuf)
{
internal_error("qf_fill_buffer()");
@@ -4883,6 +4886,10 @@ qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid)
while ((curbuf->b_ml.ml_flags & ML_EMPTY) == 0)
(void)ml_delete((linenr_T)1);
FOR_ALL_TAB_WINDOWS(tp, wp)
if (wp->w_buffer == curbuf)
wp->w_skipcol = 0;
// Remove all undo information
u_clearallandblockfree(curbuf);
}