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:
Jan Edmund Lazo 2019-07-19 05:46:22 -04:00 committed by Justin M. Keyes
parent 281d422e71
commit d4e93fedf1

View File

@ -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;
}