diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-22 22:44:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-22 22:44:11 +0200 |
commit | 73170917f14d1b0d919c65fbc0a9d011b87d94da (patch) | |
tree | 6ee99f847cbd30b9be296122e3d2ecc501cd5bdf /src/testdir/test_vim9_cmd.vim | |
parent | 093165c899f1620543844d1c1a7a05975697c286 (diff) | |
download | vim-git-73170917f14d1b0d919c65fbc0a9d011b87d94da.tar.gz |
patch 8.2.3367: Vim9: :@r executing a register is inconsistentv8.2.3367
Problem: Vim9: :@r executing a register is inconsistent.
Solution: Use "@r" as the start of an expression. (issue #8779)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 4b3cbc678..ec845ea40 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -537,6 +537,22 @@ def Test_option_use_linebreak() CheckDefAndScriptSuccess(lines) enddef +def Test_register_use_linebreak() + var lines =<< trim END + new + @a = 'one' + @a->setline(1) + @b = 'two' + @b ->setline(2) + @c = 'three' + @c + ->setline(3) + assert_equal(['one', 'two', 'three'], getline(1, '$')) + bwipe! + END + CheckDefAndScriptSuccess(lines) +enddef + def Test_skipped_expr_linebreak() if 0 var x = [] |