diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2020-12-17 14:14:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 09:14:19 -0500 |
commit | f007a140ab83e7a4283099dfd20b58f0b34f300a (patch) | |
tree | 1d088bc9a494457fb8506a21466a13641e7ff04b /src/nvim/quickfix.c | |
parent | 2debabb0805ccd014478e6aff88fce8129a352d0 (diff) | |
download | rneovim-f007a140ab83e7a4283099dfd20b58f0b34f300a.tar.gz rneovim-f007a140ab83e7a4283099dfd20b58f0b34f300a.tar.bz2 rneovim-f007a140ab83e7a4283099dfd20b58f0b34f300a.zip |
vim-patch:8.2.2147: quickfix window title not updated in all tab pages (#13545)
Problem: Quickfix window title not updated in all tab pages.
Solution: Update the quickfix window title in all tab pages. (Yegappan
Lakshmanan, closes vim/vim#7481, closes vim/vim#7466)
https://github.com/vim/vim/commit/530bed993e41bda6f717a8ddd0acb39464f95336
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 7fdc998e20..9b8cc9ba31 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3824,17 +3824,21 @@ static buf_T *qf_find_buf(qf_info_T *qi) return NULL; } -/// 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) + FUNC_ATTR_NONNULL_ALL { - win_T *win; + qf_list_T *const qfl = qf_get_curlist(qi); + win_T *const save_curwin = curwin; - if ((win = qf_find_win(qi)) != NULL) { - win_T *curwin_save = curwin; - curwin = win; - qf_set_title_var(qf_get_curlist(qi)); - curwin = curwin_save; + FOR_ALL_TAB_WINDOWS(tp, win) { + if (is_qf_win(win, qi)) { + curwin = win; + qf_set_title_var(qfl); + } } + curwin = save_curwin; } // Find the quickfix buffer. If it exists, update the contents. |