mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 08:13:45 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user