aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_quickfix.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-02 09:52:05 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-02 11:57:53 +0800
commitd197e77a55586efff17a555fa92a01a4fad784af (patch)
tree0068895b398940ab4e16f0fdd5f700b12552a126 /src/nvim/testdir/test_quickfix.vim
parentf71d518c90b46dd7c53d151a59ff9a5236589f64 (diff)
downloadrneovim-d197e77a55586efff17a555fa92a01a4fad784af.tar.gz
rneovim-d197e77a55586efff17a555fa92a01a4fad784af.tar.bz2
rneovim-d197e77a55586efff17a555fa92a01a4fad784af.zip
vim-patch:8.2.0261: some code not covered by tests
Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5645) https://github.com/vim/vim/commit/f0cee1971f5258ce61f8a4e6a04d35c1e625bb01 Cherry-pick Test_bunload_with_offset() from patch 8.2.0243
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
-rw-r--r--src/nvim/testdir/test_quickfix.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index 5826666cbb..4f83c45770 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -553,6 +553,15 @@ func Xtest_browse(cchar)
10Xcc
call assert_equal(11, line('.'))
call assert_equal('Xqftestfile2', bufname('%'))
+ Xopen
+ call cursor(2, 1)
+ if a:cchar == 'c'
+ .cc
+ else
+ .ll
+ endif
+ call assert_equal(6, line('.'))
+ call assert_equal('Xqftestfile1', bufname('%'))
" Jumping to an error from the error window (when only the error window is
" present)