summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-10 21:47:43 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-10 21:47:43 +0200
commitf163bd5e41e8ea1d32e7977e671598a9d6f7b23c (patch)
tree89429218a74bdf64027a9c204e6911d1f967d297 /src/vim9execute.c
parent7e5bd91dc99e1ecb38c4220eaab1a906a69815c2 (diff)
downloadvim-git-f163bd5e41e8ea1d32e7977e671598a9d6f7b23c.tar.gz
patch 8.2.0732: Vim9: storing value in dict messes up stackv8.2.0732
Problem: Vim9: storing value in dict messes up stack. Solution: Correct item count of stack.
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index ba4ae4787..4356e2a95 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -1286,6 +1286,7 @@ call_def_function(
}
clear_tv(tv_idx);
clear_tv(tv_list);
+ ectx.ec_stack.ga_len -= 3;
}
break;
@@ -1319,6 +1320,7 @@ call_def_function(
}
clear_tv(tv_key);
clear_tv(tv_dict);
+ ectx.ec_stack.ga_len -= 3;
}
break;