Mercurial > vim
diff src/testdir/test_vim9_cmd.vim @ 23628:b26bbc03126a v8.2.2356
patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly
Commit: https://github.com/vim/vim/commit/883cf97f109d2ff281cf77f7b2e3bb44aced7cb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 15 18:04:43 2021 +0100
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 https://github.com/vim/vim/issues/7684)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 15 Jan 2021 18:15:05 +0100 |
parents | dc3b7a31c29f |
children | 9ee9c4246a7f |
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -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'