comparison src/quickfix.c @ 23203:db97415750ce v8.2.2147

patch 8.2.2147: quickfix window title not updated in all tab pages Commit: https://github.com/vim/vim/commit/530bed993e41bda6f717a8ddd0acb39464f95336 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 16 21:02:56 2020 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Dec 2020 21:15:04 +0100
parents 450d6e4992e1
children 51b1a7e3e4ab
comparison
equal deleted inserted replaced
23202:71089c6b385c 23203:db97415750ce
4429 free_tv(tv); 4429 free_tv(tv);
4430 return TRUE; 4430 return TRUE;
4431 } 4431 }
4432 4432
4433 /* 4433 /*
4434 * Update the w:quickfix_title variable in the quickfix/location list window 4434 * Update the w:quickfix_title variable in the quickfix/location list window in
4435 * all the tab pages.
4435 */ 4436 */
4436 static void 4437 static void
4437 qf_update_win_titlevar(qf_info_T *qi) 4438 qf_update_win_titlevar(qf_info_T *qi)
4438 { 4439 {
4440 qf_list_T *qfl = qf_get_curlist(qi);
4441 tabpage_T *tp;
4439 win_T *win; 4442 win_T *win;
4440 win_T *curwin_save; 4443 win_T *save_curwin = curwin;
4441 4444
4442 if ((win = qf_find_win(qi)) != NULL) 4445 FOR_ALL_TAB_WINDOWS(tp, win)
4443 { 4446 {
4444 curwin_save = curwin; 4447 if (is_qf_win(win, qi))
4445 curwin = win; 4448 {
4446 qf_set_title_var(qf_get_curlist(qi)); 4449 curwin = win;
4447 curwin = curwin_save; 4450 qf_set_title_var(qfl);
4448 } 4451 }
4452 }
4453 curwin = save_curwin;
4449 } 4454 }
4450 4455
4451 /* 4456 /*
4452 * Find the quickfix buffer. If it exists, update the contents. 4457 * Find the quickfix buffer. If it exists, update the contents.
4453 */ 4458 */