0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1178

Problem:    empty() doesn't work for the new special variables.
Solution:   Make empty() work. (Damien)
This commit is contained in:
Bram Moolenaar
2016-01-25 20:22:54 +01:00
parent 5aec481097
commit 767d8c1a1a
3 changed files with 11 additions and 0 deletions

View File

@@ -10578,6 +10578,10 @@ f_empty(argvars, rettv)
n = argvars[0].vval.v_dict == NULL
|| argvars[0].vval.v_dict->dv_hashtab.ht_used == 0;
break;
case VAR_SPECIAL:
n = argvars[0].vval.v_number != VVAL_TRUE;
break;
default:
EMSG2(_(e_intern2), "f_empty()");
n = 0;