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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 4f934fdc70..23a0ef8506 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -4134,6 +4134,11 @@ static int eval_method(char_u **const arg, typval_T *const rettv,
EMSG2(_(e_missingparen), name);
}
ret = FAIL;
+ } else if (ascii_iswhite((*arg)[-1])) {
+ if (verbose) {
+ EMSG(_("E274: No white space allowed before parenthesis"));
+ }
+ ret = FAIL;
} else {
ret = eval_func(arg, name, len, rettv, evaluate, &base);
}