0
0
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:
Bram Moolenaar
2021-01-15 18:04:43 +01:00
parent 97c6943e11
commit 883cf97f10
5 changed files with 47 additions and 26 deletions

View File

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