tag: fix problem when tagfunc return value is v:null (#12251)

fixes #12250.
This commit is contained in:
erw7 2020-05-05 17:33:48 +09:00 committed by GitHub
parent fdd328d568
commit a467f3f665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1182,7 +1182,7 @@ static int find_tagfunc_tags(
if (result == FAIL) {
return FAIL;
}
if (rettv.v_type == VAR_SPECIAL && rettv.vval.v_number == VV_NULL) {
if (rettv.v_type == VAR_SPECIAL && rettv.vval.v_special == kSpecialVarNull) {
tv_clear(&rettv);
return NOTDONE;
}