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

View File

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