]>
Commit | Line | Data |
---|---|---|
51f9884c AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.406 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 6.2.406 | |
11 | Problem: ":help \zs", ":help \@=" and similar don't find useful help. | |
12 | Solution: Prepend "/\" to the arguments to find the desired help tag. | |
13 | Files: src/ex_cmds.c | |
14 | ||
15 | ||
16 | *** ../vim-6.2.405/src/ex_cmds.c Tue Mar 23 14:04:16 2004 | |
17 | --- src/ex_cmds.c Fri Mar 26 22:26:39 2004 | |
18 | *************** | |
19 | *** 4839,4850 **** | |
20 | { | |
21 | /* Replace "\S" with "/\\S", etc. Otherwise every tag is matched. | |
22 | * Also replace "\%^" and "\%(", they match every tag too. | |
23 | * And also "\_$" and "\_^". */ | |
24 | - | |
25 | if (arg[0] == '\\' | |
26 | && ((arg[1] != NUL && arg[2] == NUL) | |
27 | ! || ((arg[1] == '%' || arg[1] == '_') | |
28 | ! && arg[2] != NUL && arg[3] == NUL))) | |
29 | { | |
30 | STRCPY(d, "/\\\\"); | |
31 | STRCPY(d + 3, arg + 1); | |
32 | --- 4839,4851 ---- | |
33 | { | |
34 | /* Replace "\S" with "/\\S", etc. Otherwise every tag is matched. | |
35 | * Also replace "\%^" and "\%(", they match every tag too. | |
36 | + * Also "\zs", "\z1", etc. | |
37 | + * Also "\@<", "\@=", "\@<=", etc. | |
38 | * And also "\_$" and "\_^". */ | |
39 | if (arg[0] == '\\' | |
40 | && ((arg[1] != NUL && arg[2] == NUL) | |
41 | ! || (vim_strchr((char_u *)"%_z@", arg[1]) != NULL | |
42 | ! && arg[2] != NUL))) | |
43 | { | |
44 | STRCPY(d, "/\\\\"); | |
45 | STRCPY(d + 3, arg + 1); | |
46 | *** ../vim-6.2.405/src/version.c Fri Mar 26 22:02:11 2004 | |
47 | --- src/version.c Fri Mar 26 22:25:49 2004 | |
48 | *************** | |
49 | *** 639,640 **** | |
50 | --- 639,642 ---- | |
51 | { /* Add new patch number below this line */ | |
52 | + /**/ | |
53 | + 406, | |
54 | /**/ | |
55 | ||
56 | -- | |
57 | hundred-and-one symptoms of being an internet addict: | |
58 | 160. You get in the elevator and double-click the button for the floor | |
59 | you want. | |
60 | ||
61 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
62 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
63 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
64 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |