forked from aniani/vim
patch 8.2.3018: 'quickfixtextfunc' formatting is lost when switching buffers
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 #8400, closes #8403)
This commit is contained in:
committed by
Bram Moolenaar
parent
59b50c3bee
commit
ad52f96a2d
@@ -4473,7 +4473,17 @@ qf_update_buffer(qf_info_T *qi, qfline_T *old_last)
|
||||
int qf_winid = 0;
|
||||
|
||||
if (IS_LL_STACK(qi))
|
||||
qf_winid = curwin->w_id;
|
||||
{
|
||||
if (curwin->w_llist == qi)
|
||||
win = curwin;
|
||||
else
|
||||
{
|
||||
win = qf_find_win_with_loclist(qi);
|
||||
if (win == NULL)
|
||||
return;
|
||||
}
|
||||
qf_winid = win->w_id;
|
||||
}
|
||||
|
||||
if (old_last == NULL)
|
||||
// set curwin/curbuf to buf and save a few things
|
||||
|
Reference in New Issue
Block a user