diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-18 17:37:33 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-18 19:41:54 +0800 |
| commit | b2345ddbf33ab4941839ac0976a9e8261b284c40 (patch) | |
| tree | f59216b303bd8f0eed9abf99c8f582712d7b7423 /src/nvim/testdir | |
| parent | 136112a869e6f94f34627a2902eb83c8ee526273 (diff) | |
| download | rneovim-b2345ddbf33ab4941839ac0976a9e8261b284c40.tar.gz rneovim-b2345ddbf33ab4941839ac0976a9e8261b284c40.tar.bz2 rneovim-b2345ddbf33ab4941839ac0976a9e8261b284c40.zip | |
vim-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 vim/vim#9928)
https://github.com/vim/vim/commit/20fb28b1dcc092787e1a7b22dcfcfe1e46e29813
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_tagjump.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_tagjump.vim b/src/nvim/testdir/test_tagjump.vim index c981bfc26c..be60a3535c 100644 --- a/src/nvim/testdir/test_tagjump.vim +++ b/src/nvim/testdir/test_tagjump.vim @@ -1598,6 +1598,15 @@ func Test_tagbsearch() call assert_equal(3, line('.')) %bw! + " Binary search fails on EOF + call writefile([ + \ "!_TAG_FILE_ENCODING\tutf-8\t//", + \ "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted, 2=foldcase/", + \ "bar\tXfoo\t1", + \ "foo\tXfoo\t2"], + \ 'Xtags') + call assert_fails('tag bbb', 'E426:') + call delete('Xtags') call delete('Xfoo') set tags& tagbsearch& |