forked from aniani/vim
updated for version 7.3.656
Problem: Internal error in :pyeval. Solution: Handle failed object conversion. (ZyX)
This commit is contained in:
@@ -1817,6 +1817,10 @@ do_py3eval (char_u *str, typval_T *rettv)
|
||||
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
||||
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
||||
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
||||
case VAR_UNKNOWN:
|
||||
rettv->v_type = VAR_NUMBER;
|
||||
rettv->vval.v_number = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user