diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-24 21:56:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-24 21:56:03 +0200 |
commit | 5ca5cc6412d7d68fd380926f9551a8b7ba335199 (patch) | |
tree | 8f45b217f46ee530fe145ec9912305cc4aa6d165 /src/testdir/test_vim9_cmd.vim | |
parent | 60faf8656e1a100778bf7cd4d305380fb852d540 (diff) |
patch 8.2.3371: Vim9: :$ENV cannot be followed by ->func() in next linev8.2.3371
Problem: Vim9: :$ENV cannot be followed by ->func() in next line.
Solution: Use "$ENV" as the start of an expression. (closes #8790)
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 ec845ea40b..128575b955 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -553,6 +553,22 @@ def Test_register_use_linebreak() CheckDefAndScriptSuccess(lines) enddef +def Test_environment_use_linebreak() + var lines =<< trim END + new + $TESTENV = 'one' + $TESTENV->setline(1) + $TESTENV = 'two' + $TESTENV ->setline(2) + $TESTENV = 'three' + $TESTENV + ->setline(3) + assert_equal(['one', 'two', 'three'], getline(1, '$')) + bwipe! + END + CheckDefAndScriptSuccess(lines) +enddef + def Test_skipped_expr_linebreak() if 0 var x = [] |