diff options
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7a8402a6bb..e244930ba5 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -19250,8 +19250,11 @@ static int get_name_len(const char **const arg, } len += get_id_len(arg); - if (len == 0 && verbose) + // Only give an error when there is something, otherwise it will be + // reported at a higher level. + if (len == 0 && verbose && **arg != NUL) { EMSG2(_(e_invexpr2), *arg); + } return len; } |