comparison src/testdir/test_tagjump.vim @ 28037:12a256140887 v8.2.4543

patch 8.2.4543: Coverity warning for refactored tag search code Commit: https://github.com/vim/vim/commit/20fb28b1dcc092787e1a7b22dcfcfe1e46e29813 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri Mar 11 12:05:18 2022 +0000 patch 8.2.4543: Coverity warning for refactored tag search code Problem: Coverity warning for refactored tag search code. Solution: Avoid the warnings. Update comments. Add one more test case. (Yegappan Lakshmanan, closes #9928)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Mar 2022 13:15:04 +0100
parents d59552ad3f36
children 22f743798f84
comparison
equal deleted inserted replaced
28036:3167a59d5fc2 28037:12a256140887
1576 tag third 1576 tag third
1577 call assert_equal('Xfoo', bufname()) 1577 call assert_equal('Xfoo', bufname())
1578 call assert_equal(3, line('.')) 1578 call assert_equal(3, line('.'))
1579 %bw! 1579 %bw!
1580 1580
1581 " Binary search fails on EOF
1582 call writefile([
1583 \ "!_TAG_FILE_ENCODING\tutf-8\t//",
1584 \ "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted, 2=foldcase/",
1585 \ "bar\tXfoo\t1",
1586 \ "foo\tXfoo\t2"],
1587 \ 'Xtags')
1588 call assert_fails('tag bbb', 'E426:')
1589
1581 call delete('Xtags') 1590 call delete('Xtags')
1582 call delete('Xfoo') 1591 call delete('Xfoo')
1583 set tags& tagbsearch& 1592 set tags& tagbsearch&
1584 endfunc 1593 endfunc
1585 1594