diff options
Diffstat (limited to 'src/typval.c')
-rw-r--r-- | src/typval.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/typval.c b/src/typval.c index 4bde94e19..9ca35699d 100644 --- a/src/typval.c +++ b/src/typval.c @@ -151,10 +151,13 @@ clear_tv(typval_T *varp) channel_unref(varp->vval.v_channel); varp->vval.v_channel = NULL; #endif + break; + case VAR_INSTR: + VIM_CLEAR(varp->vval.v_instr); + break; case VAR_UNKNOWN: case VAR_ANY: case VAR_VOID: - case VAR_INSTR: break; } varp->v_lock = 0; |