1
0
forked from aniani/vim

patch 8.2.2147: quickfix window title not updated in all tab pages

Problem:    Quickfix window title not updated in all tab pages.
Solution:   Update the quickfix window title in all tab pages. (Yegappan
            Lakshmanan, closes #7481, closes #7466)
This commit is contained in:
Bram Moolenaar
2020-12-16 21:02:56 +01:00
parent 9987fb0b4b
commit 530bed993e
3 changed files with 38 additions and 7 deletions

View File

@@ -4431,21 +4431,26 @@ qf_process_qftf_option(void)
}
/*
* Update the w:quickfix_title variable in the quickfix/location list window
* Update the w:quickfix_title variable in the quickfix/location list window in
* all the tab pages.
*/
static void
qf_update_win_titlevar(qf_info_T *qi)
{
qf_list_T *qfl = qf_get_curlist(qi);
tabpage_T *tp;
win_T *win;
win_T *curwin_save;
win_T *save_curwin = curwin;
if ((win = qf_find_win(qi)) != NULL)
FOR_ALL_TAB_WINDOWS(tp, win)
{
curwin_save = curwin;
curwin = win;
qf_set_title_var(qf_get_curlist(qi));
curwin = curwin_save;
if (is_qf_win(win, qi))
{
curwin = win;
qf_set_title_var(qfl);
}
}
curwin = save_curwin;
}
/*