From e4e230a0cd1b2b0aaee60a5a4a7fcb8df508e7a0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 9 May 2024 06:11:56 +0800 Subject: 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 https://github.com/vim/vim/commit/c7a8eb5ff2ddd919e6f39faec93d81c52874695a --- src/nvim/quickfix.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nvim/quickfix.c') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 94e176bd94..2713dd2a45 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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); } -- cgit