aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 97d778327b..744fb13447 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -17580,15 +17580,14 @@ void ex_function(exarg_T *eap)
/* Check for defining a function inside this function. */
if (checkforcmd(&p, "function", 2)) {
- if (*p == '!')
+ if (*p == '!') {
p = skipwhite(p + 1);
+ }
p += eval_fname_script(p);
- if (ASCII_ISALPHA(*p)) {
- free(trans_function_name(&p, TRUE, 0, NULL));
- if (*skipwhite(p) == '(') {
- ++nesting;
- indent += 2;
- }
+ free(trans_function_name(&p, TRUE, 0, NULL));
+ if (*skipwhite(p) == '(') {
+ nesting++;
+ indent += 2;
}
}