diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-28 20:53:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-28 20:53:21 +0100 |
commit | dcc58e031ded8b846a39146112b9b075cbb977d9 (patch) | |
tree | 7c72a702e15709f6216ff3bc711ed23045af2804 /src/testdir/test_vim9_cmd.vim | |
parent | 9b8d62267f583d5dc042920adb1de046959ad11d (diff) |
patch 8.2.2239: Vim9: concatenating lines with backslash is inconvenientv8.2.2239
Problem: Vim9: concatenating lines with backslash is inconvenient.
Solution: Support concatenating lines starting with '|', useful for
:autocmd, :command, etc. (closes #6702)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 96311a5c68..710af413c5 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -548,13 +548,33 @@ def Test_command_modifier_other() bwipe! au BufNewFile Xfile g:readFile = 1 + | g:readExtra = 2 g:readFile = 0 + g:readExtra = 0 edit Xfile assert_equal(1, g:readFile) + assert_equal(2, g:readExtra) bwipe! g:readFile = 0 noautocmd edit Xfile assert_equal(0, g:readFile) + au! BufNewFile + + au BufNewFile Xfile g:readFile = 1 + | g:readExtra = 2 + | g:readMore = 3 + g:readFile = 0 + g:readExtra = 0 + g:readMore = 0 + edit Xfile + assert_equal(1, g:readFile) + assert_equal(2, g:readExtra) + assert_equal(3, g:readMore) + bwipe! + au! BufNewFile + unlet g:readFile + unlet g:readExtra + unlet g:readMore noswapfile edit XnoSwap assert_equal(0, &l:swapfile) |