0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2021-04-21 16:00:10 +02:00
parent 2d5f385cee
commit a369c3d9c1
3 changed files with 44 additions and 25 deletions

View File

@@ -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