mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user