annotate src/testdir/test25.in @ 8798:176647a751d7 v7.4.1687

commit https://github.com/vim/vim/commit/bdf0bda968a53a55149a4c83a10a60c28e431305 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 30 21:06:57 2016 +0200 patch 7.4.1687 Problem: The channel close_cb option does not work. Solution: Use jo_close_partial instead of jo_err_partial. (Damien)
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Mar 2016 22:15:10 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for jumping to a tag with 'hidden' set, with symbolic link in path of tag.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 This only works for Unix, because of the symbolic link.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :set hidden
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :" Create a link from test25.dir to the current directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :!rm -f test25.dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :!ln -s . test25.dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :" Create tags.text, with the current directory name inserted.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 /tags line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :r !pwd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 d$/test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 hP:.w! tags.test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :" Try jumping to a tag in the current file, but with a path that contains a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :" symbolic link. When wrong, this will give the ATTENTION message. The next
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :" space will then be eaten by hit-return, instead of moving the cursor to 'd'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :set tags=tags.test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 G x:.w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :!rm -f test25.dir tags.test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 tags line:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 SECTION_OFF /test25.dir/test25.in /^#define SECTION_OFF 3$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 /*tx.c*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 #define SECTION_OFF 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 #define NUM_SECTIONS 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 SECTION_OFF