1
0
forked from aniani/vim

patch 8.2.3367: Vim9: :@r executing a register is inconsistent

Problem:    Vim9: :@r executing a register is inconsistent.
Solution:   Use "@r" as the start of an expression. (issue #8779)
This commit is contained in:
Bram Moolenaar
2021-08-22 22:44:11 +02:00
parent 093165c899
commit 73170917f1
3 changed files with 32 additions and 7 deletions

View File

@@ -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 = []