Mercurial > vim
view src/testdir/test_tagjump.vim @ 9949:30be4b26a37e v7.4.2248
commit https://github.com/vim/vim/commit/358308dd99abdd56c6540339e505585d8db7bdfe
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 24 21:21:26 2016 +0200
patch 7.4.2248
Problem: When cancelling the :ptjump prompt a preview window is opened for
a following command.
Solution: Reset g_do_tagpreview. (Hirohito Higashi) Add a test. Avoid that
the test runner gets stuck in trying to close a window.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 24 Aug 2016 21:30:06 +0200 |
parents | 3ee84d270ea7 |
children | eb9a7296ae9f |
line wrap: on
line source
" Tests for tagjump (tags and special searches) " SEGV occurs in older versions. (At least 7.4.1748 or older) func Test_ptag_with_notagstack() set notagstack call assert_fails('ptag does_not_exist_tag_name', 'E426') set tagstack&vim endfunc func Test_cancel_ptjump() set tags=Xtags call writefile(["!_TAG_FILE_ENCODING\tutf-8\t//", \ "word\tfile1\tcmd1", \ "word\tfile2\tcmd2"], \ 'Xtags') only! call feedkeys(":ptjump word\<CR>\<CR>", "xt") help call assert_equal(2, winnr('$')) call delete('Xtags') quit endfunc " vim: shiftwidth=2 sts=2 expandtab