diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-10 19:43:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-10 19:43:40 +0100 |
commit | 08597875b2a1e7d118b0346c652a96e7527e7d8b (patch) | |
tree | 0bb1d04eadfe4110a7962e9fcbfd361452677205 /src/testdir/test_vim9_cmd.vim | |
parent | d356fc65d273959efa9b05bfa0f07ce1c9ff85a4 (diff) |
patch 8.2.2124: Vim9: a range cannot be computed at runtimev8.2.2124
Problem: Vim9: a range cannot be computed at runtime.
Solution: Add the ISN_RANGE instruction.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 37fc559bf0..1986c0f71e 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -614,6 +614,17 @@ def Test_put_command() assert_equal('above', getline(3)) assert_equal('below', getline(4)) + # compute range at runtime + setline(1, range(1, 8)) + @a = 'aaa' + :$-2put a + assert_equal('aaa', getline(7)) + + setline(1, range(1, 8)) + :2 + :+2put! a + assert_equal('aaa', getline(4)) + bwipe! enddef |