diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-19 05:46:22 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-19 11:46:22 +0200 |
commit | d4e93fedf13bce843aae4219fc9b5057394114ea (patch) | |
tree | 060d51d586cc8e46666ef05791a4f3b9651f30fb /src | |
parent | 281d422e71903c8b9e1f2c8bfe5972e3c3b1be1b (diff) | |
download | rneovim-d4e93fedf13bce843aae4219fc9b5057394114ea.tar.gz rneovim-d4e93fedf13bce843aae4219fc9b5057394114ea.tar.bz2 rneovim-d4e93fedf13bce843aae4219fc9b5057394114ea.zip |
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
Diffstat (limited to 'src')
-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; } |