mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 03:35:02 -07:00
eval: Fix case when cur_mpsv is NULL
Should only happen when clearing VAR_FUNC typval which is not placed inside a container.
This commit is contained in:
parent
759e736b0a
commit
901e7805ee
@ -19086,7 +19086,8 @@ void free_tv(typval_T *varp)
|
||||
#define TYPVAL_ENCODE_CONV_FUNC_BEFORE_SELF(len)
|
||||
#define TYPVAL_ENCODE_CONV_FUNC_END() \
|
||||
do { \
|
||||
if (cur_mpsv->type == kMPConvPartial) { \
|
||||
assert(cur_mpsv != NULL || tv->v_type == VAR_FUNC); \
|
||||
if (cur_mpsv != NULL && cur_mpsv->type == kMPConvPartial) { \
|
||||
typval_T *const cur_tv = cur_mpsv->tv; \
|
||||
partial_T *const pt = cur_mpsv->data.p.pt; \
|
||||
partial_unref(pt); \
|
||||
|
Loading…
Reference in New Issue
Block a user