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:
@@ -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
|
||||
|
Reference in New Issue
Block a user