mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly
Problem: Vim9: ":put =expr" does not handle a list properly. Solution: Use the same logic as eval_to_string_eap(). (closes #7684)
This commit is contained in:
@@ -736,6 +736,9 @@ def Test_put_command()
|
||||
assert_equal('above', getline(3))
|
||||
assert_equal('below', getline(4))
|
||||
|
||||
:2put =['a', 'b', 'c']
|
||||
assert_equal(['ppp', 'a', 'b', 'c', 'above'], getline(2, 6))
|
||||
|
||||
# compute range at runtime
|
||||
setline(1, range(1, 8))
|
||||
@a = 'aaa'
|
||||
|
Reference in New Issue
Block a user