mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00: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:

committed by
Justin M. Keyes

parent
281d422e71
commit
d4e93fedf1
@@ -19250,8 +19250,11 @@ static int get_name_len(const char **const arg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
len += get_id_len(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);
|
EMSG2(_(e_invexpr2), *arg);
|
||||||
|
}
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user