diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-20 21:44:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-20 21:44:37 +0200 |
commit | c1542744e788d96fed24dd421f43009288092504 (patch) | |
tree | 502ef35e555f7ef44ae84e6984dc407703af1af0 /src/testdir/test_quickfix.vim | |
parent | b869c0da31716ff14bbfd63346d140d0a1d68af7 (diff) | |
download | vim-c1542744e788d96fed24dd421f43009288092504.zip |
patch 7.4.2081
Problem: Line numbers in the error list are not always adjusted.
Solution: Set b_has_qf_entry properly. (Yegappan Lakshmanan)
Diffstat (limited to 'src/testdir/test_quickfix.vim')
-rw-r--r-- | src/testdir/test_quickfix.vim | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index 83f4d0cbe..e79315b96 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -1341,13 +1341,14 @@ function! Xadjust_qflnum(cchar) enew | only - call s:create_test_file('Xqftestfile') - edit Xqftestfile + let fname = 'Xqftestfile' . a:cchar + call s:create_test_file(fname) + exe 'edit ' . fname - Xgetexpr ['Xqftestfile:5:Line5', - \ 'Xqftestfile:10:Line10', - \ 'Xqftestfile:15:Line15', - \ 'Xqftestfile:20:Line20'] + Xgetexpr [fname . ':5:Line5', + \ fname . ':10:Line10', + \ fname . ':15:Line15', + \ fname . ':20:Line20'] 6,14delete call append(6, ['Buffer', 'Window']) @@ -1359,11 +1360,13 @@ function! Xadjust_qflnum(cchar) call assert_equal(13, l[3].lnum) enew! - call delete('Xqftestfile') + call delete(fname) endfunction function! Test_adjust_lnum() + call setloclist(0, []) call Xadjust_qflnum('c') + call setqflist([]) call Xadjust_qflnum('l') endfunction |