diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-14 13:51:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-14 13:51:37 +0200 |
commit | 81edd171a9465cf99cede4fa4a7b7bca3d538b0f (patch) | |
tree | b9276dfffad0c48e92fa949a6d88770f630ea69f /src/ex_cmds.c | |
parent | ebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e (diff) | |
download | vim-git-81edd171a9465cf99cede4fa4a7b7bca3d538b0f.tar.gz |
patch 7.4.1728v7.4.1728
Problem: The help for functions require a space after the "(".
Solution: Make CTRL-] on a function name ignore the arguments. (Hirohito
Higashi)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index daac3ae8d..d83dc405c 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -6204,6 +6204,13 @@ find_help_tags( *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 '.'). */ |