" Tests for tagjump (tags and special searches)
source check.vim
source screendump.vim
" SEGV occurs in older versions. (At least 7.4.1748 or older)
func Test_ptag_with_notagstack()
CheckFeature quickfix
set notagstack
call assert_fails('ptag does_not_exist_tag_name', 'E433:')
set tagstack&vim
endfunc
func Test_ptjump()
CheckFeature quickfix
set tags=Xpttags
call writefile(["!_TAG_FILE_ENCODING\tutf-8\t//",
\ "one\tXptfile\t1",
\ "three\tXptfile\t3",
\ "two\tXptfile\t2"],
\ 'Xpttags', 'D')
call writefile(['one', 'two', 'three'], 'Xptfile', 'D')
%bw!
ptjump two
call assert_equal(2, winnr