diff options
| author | James McCoy <jamessan@jamessan.com> | 2017-03-19 14:50:00 -0400 |
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2017-03-19 23:42:14 -0400 |
| commit | e1af49b425f25024a3e6361ed576cf69296a1da4 (patch) | |
| tree | 308e29aec15838904484d19284fa236dca906aed /src/nvim/testdir | |
| parent | 058516aaf9c29b41bf27c8d4adfa2773c3896205 (diff) | |
| download | rneovim-e1af49b425f25024a3e6361ed576cf69296a1da4.tar.gz rneovim-e1af49b425f25024a3e6361ed576cf69296a1da4.tar.bz2 rneovim-e1af49b425f25024a3e6361ed576cf69296a1da4.zip | |
vim-patch:8.0.0195
Problem: Jumping to a tag that is a static item in the current file fails.
(Kazunobu Kuriyama)
Solution: Make sure the first byte of the tag key is not NUL. (Suggested by
James McCoy, closes vim/vim#1387)
https://github.com/vim/vim/commit/a9d23c20879d0dcb289a4db54b3c7df060f87c3c
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_tagjump.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_tagjump.vim b/src/nvim/testdir/test_tagjump.vim index 678ad0ada8..54b5f4afd6 100644 --- a/src/nvim/testdir/test_tagjump.vim +++ b/src/nvim/testdir/test_tagjump.vim @@ -23,4 +23,22 @@ func Test_cancel_ptjump() quit endfunc +func Test_static_tagjump() + set tags=Xtags + call writefile(["!_TAG_FILE_ENCODING\tutf-8\t//", + \ "one\tXfile1\t/^one/;\"\tf\tfile:\tsignature:(void)", + \ "word\tXfile2\tcmd2"], + \ 'Xtags') + new Xfile1 + call setline(1, ['empty', 'one()', 'empty']) + write + tag one + call assert_equal(2, line('.')) + + set tags& + call delete('Xtags') + call delete('Xfile1') + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |