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/testdir | |
| 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/testdir')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 5323b1acf3..563dbd90d9 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -3762,6 +3762,30 @@ func Test_qftitle() call setqflist([], 'r', {'items' : [{'filename' : 'a.c', 'lnum' : 10}]}) call assert_equal('Errors', w:quickfix_title) cclose + + " Switching to another quickfix list in one tab page should update the + " quickfix window title and statusline in all the other tab pages also + call setqflist([], 'f') + %bw! + cgetexpr ['file_one:1:1: error in the first quickfix list'] + call setqflist([], 'a', {'title': 'first quickfix list'}) + cgetexpr ['file_two:2:1: error in the second quickfix list'] + call setqflist([], 'a', {'title': 'second quickfix list'}) + copen + wincmd t + tabnew two + copen + wincmd t + colder + call assert_equal('first quickfix list', gettabwinvar(1, 2, 'quickfix_title')) + call assert_equal('first quickfix list', gettabwinvar(2, 2, 'quickfix_title')) + call assert_equal(1, tabpagewinnr(1)) + call assert_equal(1, tabpagewinnr(2)) + tabnew + call setqflist([], 'a', {'title': 'new quickfix title'}) + call assert_equal('new quickfix title', gettabwinvar(1, 2, 'quickfix_title')) + call assert_equal('new quickfix title', gettabwinvar(2, 2, 'quickfix_title')) + %bw! endfunc func Test_lbuffer_with_bwipe() |