0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.0740: Tcl test fails

Problem:    Tcl test fails.
Solution:   When the argument is empty don't give an error, instead rely on
            the error reporting higher up.
This commit is contained in:
Bram Moolenaar
2019-01-13 16:46:22 +01:00
parent 81b1ba4be5
commit 8309b0559d
2 changed files with 5 additions and 1 deletions

View File

@@ -6462,7 +6462,9 @@ get_name_len(
}
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;

View File

@@ -795,6 +795,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
740,
/**/
739,
/**/