mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
8309b0559d
This commit is contained in:
parent
281d422e71
commit
d4e93fedf1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user