mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
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:

committed by
James McCoy

parent
39af303600
commit
10c819d453
@@ -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;
|
||||||
|
@@ -114,7 +114,7 @@ static int included_patches[] = {
|
|||||||
// 1571,
|
// 1571,
|
||||||
1570,
|
1570,
|
||||||
1569,
|
1569,
|
||||||
// 1568,
|
1568,
|
||||||
// 1567,
|
// 1567,
|
||||||
// 1566 NA
|
// 1566 NA
|
||||||
// 1565,
|
// 1565,
|
||||||
|
Reference in New Issue
Block a user