summaryrefslogtreecommitdiff
path: root/src/vim9execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r--src/vim9execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c
index a13b0ab98..e870a279c 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -4130,7 +4130,7 @@ exe_substitute_instr(void)
{
typval_T *tv = STACK_TV_BOT(-1);
- res = vim_strsave(tv_get_string(tv));
+ res = typval2string(tv, TRUE);
--ectx->ec_stack.ga_len;
clear_tv(tv);
}