Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 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 | c713358da074 |
children | f8382c4e6551 |
comparison
equal
deleted
inserted
replaced
23202:71089c6b385c | 23203:db97415750ce |
---|---|
4163 copen | 4163 copen |
4164 call assert_equal('Errors', w:quickfix_title) | 4164 call assert_equal('Errors', w:quickfix_title) |
4165 call setqflist([], 'r', {'items' : [{'filename' : 'a.c', 'lnum' : 10}]}) | 4165 call setqflist([], 'r', {'items' : [{'filename' : 'a.c', 'lnum' : 10}]}) |
4166 call assert_equal('Errors', w:quickfix_title) | 4166 call assert_equal('Errors', w:quickfix_title) |
4167 cclose | 4167 cclose |
4168 | |
4169 " Switching to another quickfix list in one tab page should update the | |
4170 " quickfix window title and statusline in all the other tab pages also | |
4171 call setqflist([], 'f') | |
4172 %bw! | |
4173 cgetexpr ['file_one:1:1: error in the first quickfix list'] | |
4174 call setqflist([], 'a', {'title': 'first quickfix list'}) | |
4175 cgetexpr ['file_two:2:1: error in the second quickfix list'] | |
4176 call setqflist([], 'a', {'title': 'second quickfix list'}) | |
4177 copen | |
4178 wincmd t | |
4179 tabnew two | |
4180 copen | |
4181 wincmd t | |
4182 colder | |
4183 call assert_equal('first quickfix list', gettabwinvar(1, 2, 'quickfix_title')) | |
4184 call assert_equal('first quickfix list', gettabwinvar(2, 2, 'quickfix_title')) | |
4185 call assert_equal(1, tabpagewinnr(1)) | |
4186 call assert_equal(1, tabpagewinnr(2)) | |
4187 tabnew | |
4188 call setqflist([], 'a', {'title': 'new quickfix title'}) | |
4189 call assert_equal('new quickfix title', gettabwinvar(1, 2, 'quickfix_title')) | |
4190 call assert_equal('new quickfix title', gettabwinvar(2, 2, 'quickfix_title')) | |
4191 %bw! | |
4168 endfunc | 4192 endfunc |
4169 | 4193 |
4170 func Test_lbuffer_with_bwipe() | 4194 func Test_lbuffer_with_bwipe() |
4171 new | 4195 new |
4172 new | 4196 new |