summaryrefslogtreecommitdiffstats
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-04-15 19:19:52 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-15 19:19:52 +0200
commitbce51d9005dd1c5bc002acbac2e12b649abcb013 (patch)
tree046a2767183c0fd9eff9249fd44ed676db906de3 /src/vim9cmds.c
parenta59e031aa0bdc5cc3d1f4ed719126bf1a1b858ce (diff)
patch 9.1.0335: String interpolation fails for List typev9.1.0335
Problem: String interpolation fails for List type Solution: use implicit string(list) for string interpolation and :put = (Yegappan Lakshmanan) related: #14529 closes: #14556 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index ad245b9c89..694bb3349f 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -1931,7 +1931,7 @@ compile_throw(char_u *arg, cctx_T *cctx UNUSED)
return NULL;
if (cctx->ctx_skip == SKIP_YES)
return p;
- if (may_generate_2STRING(-1, FALSE, cctx) == FAIL)
+ if (may_generate_2STRING(-1, TOSTRING_NONE, cctx) == FAIL)
return NULL;
if (generate_instr_drop(cctx, ISN_THROW, 1) == NULL)
return NULL;
@@ -2359,7 +2359,7 @@ compile_exec(char_u *line_arg, exarg_T *eap, cctx_T *cctx)
p += 2;
if (compile_expr0(&p, cctx) == FAIL)
return NULL;
- may_generate_2STRING(-1, TRUE, cctx);
+ may_generate_2STRING(-1, TOSTRING_TOLERANT, cctx);
++count;
p = skipwhite(p);
if (*p != '`')