diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-12-13 21:00:55 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-12-13 21:00:55 +0100 |
commit | ef92390cb7586b8c46bfb06664e25e5e9cfbeb9c (patch) | |
tree | f6e32c45c37f79368428a71e53525815cf6a8ef7 /src/eval.c | |
parent | 2d78cd7756ac5c666e85222aea54d45b04b949a4 (diff) | |
download | vim-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.c | 11 |
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; } } |