vim-patch:8.2.3018: 'quickfixtextfunc' formatting is lost when switching buffers (#14865)

Problem:    Formatting using quickfixtextfunc is lost when updating location
            lists for different buffers.  (Yorick Peterse)
Solution:   Use the right window for the locaiton list. (Yegappan Lakshmanan,
            closes vim/vim#8400, closes vim/vim#8403)
ad52f96a2d
This commit is contained in:
Yorick Peterse
2021-06-26 16:44:05 +02:00
committed by GitHub
parent 20dc3f1989
commit 5c0b01fd88
2 changed files with 69 additions and 3 deletions

View File

@@ -3925,7 +3925,15 @@ static void qf_update_buffer(qf_info_T *qi, qfline_T *old_last)
int qf_winid = 0;
if (IS_LL_STACK(qi)) {
qf_winid = curwin->handle;
if (curwin->w_llist == qi) {
win = curwin;
} else {
win = qf_find_win_with_loclist(qi);
if (win == NULL) {
return;
}
}
qf_winid = (int)win->handle;
}
if (old_last == NULL) {