File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10578,6 +10578,10 @@ f_empty(argvars, rettv)
1057810578 n = argvars[0].vval.v_dict == NULL
1057910579 || argvars[0].vval.v_dict->dv_hashtab.ht_used == 0;
1058010580 break;
10581+ case VAR_SPECIAL:
10582+ n = argvars[0].vval.v_number != VVAL_TRUE;
10583+ break;
10584+
1058110585 default:
1058210586 EMSG2(_(e_intern2), "f_empty()");
1058310587 n = 0;
Original file line number Diff line number Diff line change @@ -987,6 +987,11 @@ func Test_type()
987987 call assert_equal (v: true , eval (string (v: true )))
988988 call assert_equal (v: none , eval (string (v: none )))
989989 call assert_equal (v: null , eval (string (v: null )))
990+
991+ call assert_true (empty (v: false ))
992+ call assert_false (empty (v: true ))
993+ call assert_true (empty (v: null ))
994+ call assert_true (empty (v: none ))
990995endfunc
991996
992997" -------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -746,6 +746,8 @@ static char *(features[]) =
746746
747747static int included_patches [] =
748748{ /* Add new patch number below this line */
749+ /**/
750+ 1178 ,
749751/**/
750752 1177 ,
751753/**/
You can’t perform that action at this time.
0 commit comments