From d4e93fedf13bce843aae4219fc9b5057394114ea Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 19 Jul 2019 05:46:22 -0400 Subject: vim-patch:8.1.0740: Tcl test fails (#10540) Problem: Tcl test fails. Solution: When the argument is empty don't give an error, instead rely on the error reporting higher up. https://github.com/vim/vim/commit/8309b0559da6e9a581a7816572594c90c2d7f942 --- src/nvim/eval.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit