summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-12-13 21:00:55 +0100
committerBram Moolenaar <Bram@vim.org>2014-12-13 21:00:55 +0100
commitef92390cb7586b8c46bfb06664e25e5e9cfbeb9c (patch)
treef6e32c45c37f79368428a71e53525815cf6a8ef7 /src/eval.c
parent2d78cd7756ac5c666e85222aea54d45b04b949a4 (diff)
downloadvim-ef92390cb7586b8c46bfb06664e25e5e9cfbeb9c.zip
updated for version 7.4.549
Problem: Function name not recognized correctly when inside a function. Solution: Don't check for an alpha character.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/eval.c b/src/eval.c
index 5c584dead..fbe824eec 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -22283,14 +22283,11 @@ ex_function(eap)
if (*p == '!')
p = skipwhite(p + 1);
p += eval_fname_script(p);
- if (ASCII_ISALPHA(*p))
+ vim_free(trans_function_name(&p, TRUE, 0, NULL));
+ if (*skipwhite(p) == '(')
{
- vim_free(trans_function_name(&p, TRUE, 0, NULL));
- if (*skipwhite(p) == '(')
- {
- ++nesting;
- indent += 2;
- }
+ ++nesting;
+ indent += 2;
}
}