vim-patch:9.1.0387: Vim9: null value tests not sufficient #40215

Problem:  Vim9: null value tests not sufficient
Solution: Add a more comprehensive test for null values
          (Yegappan Lakshmanan)

closes: vim/vim#14701

da9d345b3d

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Jan Edmund Lazo
2026-06-13 04:06:03 -04:00
committed by GitHub
parent 2c3c6bc7e3
commit c5d467323e

View File

@@ -1167,7 +1167,7 @@ static void f_empty(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|| *argvars[0].vval.v_string == NUL;
break;
case VAR_PARTIAL:
n = false;
n = argvars[0].vval.v_partial == NULL;
break;
case VAR_NUMBER:
n = argvars[0].vval.v_number == 0;