diff options
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 7 | ||||
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9execute.c | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 6b31a6222..8481ecc59 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -1236,6 +1236,13 @@ def Test_substitute_expr() END CheckScriptSuccess(lines) unlet g:cond + + # List results in multiple lines + new + setline(1, 'some text here') + s/text/\=['aaa', 'bbb', 'ccc']/ + assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$')) + bwipe! enddef def Test_redir_to_var() diff --git a/src/version.c b/src/version.c index ec20c946e..efb1b4251 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2946, +/**/ 2945, /**/ 2944, 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); } |