xref: /vim-8.2.3635/src/testdir/test25.in (revision 2bf24176)
1Test for jumping to a tag with 'hidden' set, with symbolic link in path of tag.
2This only works for Unix, because of the symbolic link.
3
4STARTTEST
5:so small.vim
6:set hidden
7:" Create a link from test25.dir to the current directory.
8:!rm -f test25.dir
9:!ln -s . test25.dir
10:" Create tags.text, with the current directory name inserted.
11/tags line
12:r !pwd
13d$/test
14hP:.w! tags.test
15:" Try jumping to a tag in the current file, but with a path that contains a
16:" symbolic link.  When wrong, this will give the ATTENTION message.  The next
17:" space will then be eaten by hit-return, instead of moving the cursor to 'd'.
18:set tags=tags.test
19G x:.w! test.out
20:!rm -f test25.dir tags.test
21:qa!
22ENDTEST
23
24tags line:
25SECTION_OFF	/test25.dir/test25.in	/^#define  SECTION_OFF  3$/
26
27/*tx.c*/
28#define  SECTION_OFF  3
29#define  NUM_SECTIONS 3
30
31SECTION_OFF
32