diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-17 21:13:38 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-17 21:37:52 -0500 |
| commit | e4b185893f511b050b8d38e92e3b1100e489dd9f (patch) | |
| tree | 9aae358c32535111e0bc65ab81c893f897b9f7aa /src/nvim/testdir | |
| parent | 54402d6b8fed8f29e094079a87ea97a64556378b (diff) | |
| download | rneovim-e4b185893f511b050b8d38e92e3b1100e489dd9f.tar.gz rneovim-e4b185893f511b050b8d38e92e3b1100e489dd9f.tar.bz2 rneovim-e4b185893f511b050b8d38e92e3b1100e489dd9f.zip | |
vim-patch:8.1.2312: "line:" field in tags file not used
Problem: "line:" field in tags file not used.
Solution: Recognize the field and use the value. (Andy Massimino, Daniel
Hahler, closes vim/vim#5232, closes vim/vim#2546, closes vim/vim#1057)
https://github.com/vim/vim/commit/077b9dd3541339a23ade0cc6a23e804ee39312c5
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_tagjump.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_tagjump.vim b/src/nvim/testdir/test_tagjump.vim index ce527a5e1d..f93af76f17 100644 --- a/src/nvim/testdir/test_tagjump.vim +++ b/src/nvim/testdir/test_tagjump.vim @@ -466,4 +466,28 @@ func Test_tag_line_toolong() let &verbose = old_vbs endfunc +func Test_tagline() + call writefile([ + \ 'provision Xtest.py /^ def provision(self, **kwargs):$/;" m line:1 language:Python class:Foo', + \ 'provision Xtest.py /^ def provision(self, **kwargs):$/;" m line:3 language:Python class:Bar', + \], 'Xtags') + call writefile([ + \ ' def provision(self, **kwargs):', + \ ' pass', + \ ' def provision(self, **kwargs):', + \ ' pass', + \], 'Xtest.py') + + set tags=Xtags + + 1tag provision + call assert_equal(line('.'), 1) + 2tag provision + call assert_equal(line('.'), 3) + + call delete('Xtags') + call delete('Xtest.py') + set tags& +endfunc + " vim: shiftwidth=2 sts=2 expandtab |