diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-21 17:54:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-21 17:54:45 +0100 |
commit | 818fc9ad143911b2faa0d7cee86724aa70a02080 (patch) | |
tree | e720688cb917f3fdd28739a4fc2340b270332235 /src/testdir/test_global.vim | |
parent | 09f28f49c9b5973593f8a9b445cdc2ed3da630b6 (diff) | |
download | vim-git-818fc9ad143911b2faa0d7cee86724aa70a02080.tar.gz |
patch 8.2.0293: various Ex commands not sufficiently testedv8.2.0293
Problem: Various Ex commands not sufficiently tested.
Solution: Add more test cases. (Yegappan Lakshmanan, closes #5673)
Diffstat (limited to 'src/testdir/test_global.vim')
-rw-r--r-- | src/testdir/test_global.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim index 8ce68531e..7804ca470 100644 --- a/src/testdir/test_global.vim +++ b/src/testdir/test_global.vim @@ -55,4 +55,16 @@ func Test_global_print() close! endfunc +" Test for global command with newline character +func Test_global_newline() + new + call setline(1, ['foo']) + exe "g/foo/s/f/h/\<NL>s/o$/w/" + call assert_equal('how', getline(1)) + call setline(1, ["foo\<NL>bar"]) + exe "g/foo/s/foo\\\<NL>bar/xyz/" + call assert_equal('xyz', getline(1)) + close! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |