mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07: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:
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] == '{'))
|
||||
*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;
|
||||
|
@ -114,7 +114,7 @@ static int included_patches[] = {
|
||||
// 1571,
|
||||
1570,
|
||||
1569,
|
||||
// 1568,
|
||||
1568,
|
||||
// 1567,
|
||||
// 1566 NA
|
||||
// 1565,
|
||||
|
Loading…
Reference in New Issue
Block a user