summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-14 13:51:37 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-14 13:51:37 +0200
commit81edd171a9465cf99cede4fa4a7b7bca3d538b0f (patch)
treeb9276dfffad0c48e92fa949a6d88770f630ea69f /src/ex_cmds.c
parentebf7dfa6f121c82f97d2adca3d45fbaba9ad8f7e (diff)
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index daac3ae8d6..d83dc405c7 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 '.').
*/