summaryrefslogtreecommitdiffstats
path: root/src/vim9instr.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-04-14 23:21:02 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-14 23:21:02 +0200
commitf01493c55062c01b1cdf9b1e946577f4d1bdddf3 (patch)
tree3f4ed5607440c2000644374866dd77850a6688ba /src/vim9instr.c
parent0d87e3c711b46be67cf8f014cc0bca21431599c0 (diff)
patch 9.1.0329: String interpolation fails for Dict typev9.1.0329
Problem: String interpolation fails for Dict type Solution: Support Dict data type properly, also support :put =Dict (without having to convert it to string() first) (Yegappan Lakshmanan) fixes: #14529 closes: #14541 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9instr.c')
-rw-r--r--src/vim9instr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9instr.c b/src/vim9instr.c
index a2179f3ecc..48ebf1ae4b 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -222,6 +222,7 @@ may_generate_2STRING(int offset, int tolerant, cctx_T *cctx)
// conversion possible when tolerant
case VAR_LIST:
+ case VAR_DICT:
if (tolerant)
{
isntype = ISN_2STRING_ANY;
@@ -234,7 +235,6 @@ may_generate_2STRING(int offset, int tolerant, cctx_T *cctx)
case VAR_BLOB:
case VAR_FUNC:
case VAR_PARTIAL:
- case VAR_DICT:
case VAR_JOB:
case VAR_CHANNEL:
case VAR_INSTR: