mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00: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:
@@ -19086,7 +19086,8 @@ void free_tv(typval_T *varp)
|
|||||||
#define TYPVAL_ENCODE_CONV_FUNC_BEFORE_SELF(len)
|
#define TYPVAL_ENCODE_CONV_FUNC_BEFORE_SELF(len)
|
||||||
#define TYPVAL_ENCODE_CONV_FUNC_END() \
|
#define TYPVAL_ENCODE_CONV_FUNC_END() \
|
||||||
do { \
|
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; \
|
typval_T *const cur_tv = cur_mpsv->tv; \
|
||||||
partial_T *const pt = cur_mpsv->data.p.pt; \
|
partial_T *const pt = cur_mpsv->data.p.pt; \
|
||||||
partial_unref(pt); \
|
partial_unref(pt); \
|
||||||
|
Reference in New Issue
Block a user