mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
vim-patch:7.4.1728
patch 7.4.1728
Problem: The help for functions require a space after the "(".
Solution: Make CTRL-] on a function name ignore the arguments. (Hirohito
Higashi)
81edd171a9
This commit is contained in:

committed by
James McCoy

parent
850f91c51c
commit
c3c409c70f
@@ -4487,6 +4487,12 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
|
||||
|
||||
*d++ = *s;
|
||||
|
||||
// If tag contains "({" or "([", tag terminates at the "(".
|
||||
// This is for help on functions, e.g.: abs({expr}).
|
||||
if (*s == '(' && (s[1] == '{' || s[1] =='[')) {
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* If tag starts with ', toss everything after a second '. Fixes
|
||||
* CTRL-] on 'option'. (would include the trailing '.').
|
||||
|
Reference in New Issue
Block a user