Mercurial > vim
diff src/testdir/test_vim9_cmd.vim @ 24516:056f954c6fd2 v8.2.2798
patch 8.2.2798: Vim9: redir to variable with append does not accept an index
Commit: https://github.com/vim/vim/commit/a369c3d9c1217cd932bc3d1751a8cff1f5aef1e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 21 16:00:10 2021 +0200
patch 8.2.2798: Vim9: redir to variable with append does not accept an index
Problem: Vim9: redir to variable with append does not accept an index.
Solution: Make the appending work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Apr 2021 16:15:04 +0200 |
parents | 53871095bb65 |
children | df90c61c306c |
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -1230,6 +1230,11 @@ def Test_redir_to_var() redir END assert_equal({l: ["\ndict-list"]}, dl) + redir =>> d.redir + echo 'more' + redir END + assert_equal({redir: "\ndict\nmore"}, d) + var lines =<< trim END redir => notexist END