vim-patch:7.4.1568

patch 7.4.1568
Problem:    Using CTRL-] in help on option in parentheses doesn't work.
Solution:   Skip the "(" in "('". (Hirohito Higashi)

00f9e0dbbd
This commit is contained in:
Michael Ennen 2016-05-09 23:37:51 -07:00 committed by James McCoy
parent 39af303600
commit 10c819d453
2 changed files with 14 additions and 11 deletions

View File

@ -4413,17 +4413,20 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
|| (arg[0] == '\\' && arg[1] == '{'))
*d++ = '\\';
for (s = arg; *s; ++s) {
/*
* Replace "|" with "bar" and '"' with "quote" to match the name of
* the tags for these commands.
* Replace "*" with ".*" and "?" with "." to match command line
* completion.
* Insert a backslash before '~', '$' and '.' to avoid their
* special meaning.
*/
if (d - IObuff > IOSIZE - 10) /* getting too long!? */
// If tag starts with "('", skip the "(". Fixes CTRL-] on ('option'.
if (*arg == '(' && arg[1] == '\'') {
arg++;
}
for (s = arg; *s; s++) {
// Replace "|" with "bar" and '"' with "quote" to match the name of
// the tags for these commands.
// Replace "*" with ".*" and "?" with "." to match command line
// completion.
// Insert a backslash before '~', '$' and '.' to avoid their
// special meaning.
if (d - IObuff > IOSIZE - 10) { // getting too long!?
break;
}
switch (*s) {
case '|': STRCPY(d, "bar");
d += 3;

View File

@ -114,7 +114,7 @@ static int included_patches[] = {
// 1571,
1570,
1569,
// 1568,
1568,
// 1567,
// 1566 NA
// 1565,