diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-09-26 19:04:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-26 19:04:05 +0100 |
commit | f8dbd586660c35e44276151b731eeedeace9b53e (patch) | |
tree | 4fd98120fed27104ccb149dbe66a4cd68672f589 /src/evalfunc.c | |
parent | 56858e4ed4e338e15821767b8303b06099e40384 (diff) |
patch 8.2.3456: Vim9: not all functions are tested with empty string argumentv8.2.3456
Problem: Vim9: Not all functions are tested with an empty string argument.
Solution: Add tests with empty strings. (Yegappan Lakshmanan, closes #8915)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 16d9be3321..8a06f757df 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -9647,9 +9647,8 @@ f_synIDattr(typval_T *argvars UNUSED, typval_T *rettv) if (in_vim9script() && (check_for_number_arg(argvars, 0) == FAIL - || (check_for_string_arg(argvars, 1) == FAIL - || (argvars[1].v_type != VAR_UNKNOWN - && check_for_opt_string_arg(argvars, 2) == FAIL)))) + || check_for_string_arg(argvars, 1) == FAIL + || check_for_opt_string_arg(argvars, 2) == FAIL)) return; id = (int)tv_get_number(&argvars[0]); |