diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-02-04 09:48:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 09:48:48 +0800 |
| commit | 6bee2bf7903b84feffb14a42668626b3014f2132 (patch) | |
| tree | 8a8041548bda612d384cbdf95cfb5f1feaa11166 /src/nvim/testdir/test_source_utf8.vim | |
| parent | b667bb355d882fa3a801972c11038112d146a39f (diff) | |
| parent | 6775a7d98f580b2024fde962dbda984eb5d583fe (diff) | |
| download | rneovim-6bee2bf7903b84feffb14a42668626b3014f2132.tar.gz rneovim-6bee2bf7903b84feffb14a42668626b3014f2132.tar.bz2 rneovim-6bee2bf7903b84feffb14a42668626b3014f2132.zip | |
Merge pull request #17272 from zeertzjq/vim-8.1.0846
vim-patch:8.1.{0846,0878,0884,2358},8.2.{0305,0352,0687,3797}
Diffstat (limited to 'src/nvim/testdir/test_source_utf8.vim')
| -rw-r--r-- | src/nvim/testdir/test_source_utf8.vim | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/nvim/testdir/test_source_utf8.vim b/src/nvim/testdir/test_source_utf8.vim index e93ea29dff..66fabe0442 100644 --- a/src/nvim/testdir/test_source_utf8.vim +++ b/src/nvim/testdir/test_source_utf8.vim @@ -1,4 +1,5 @@ " Test the :source! command +source check.vim func Test_source_utf8() " check that sourcing a script with 0x80 as second byte works @@ -31,24 +32,24 @@ endfunc " Test for sourcing a file with CTRL-V's at the end of the line func Test_source_ctrl_v() - call writefile(['map __1 afirst', - \ 'map __2 asecond', - \ 'map __3 athird', - \ 'map __4 afourth', - \ 'map __5 afifth', - \ "map __1 asd\<C-V>", - \ "map __2 asd\<C-V>\<C-V>", - \ "map __3 asd\<C-V>\<C-V>", - \ "map __4 asd\<C-V>\<C-V>\<C-V>", - \ "map __5 asd\<C-V>\<C-V>\<C-V>", - \ ], 'Xtestfile') + call writefile(['map __1 afirst', + \ 'map __2 asecond', + \ 'map __3 athird', + \ 'map __4 afourth', + \ 'map __5 afifth', + \ "map __1 asd\<C-V>", + \ "map __2 asd\<C-V>\<C-V>", + \ "map __3 asd\<C-V>\<C-V>", + \ "map __4 asd\<C-V>\<C-V>\<C-V>", + \ "map __5 asd\<C-V>\<C-V>\<C-V>", + \ ], 'Xtestfile') source Xtestfile enew! exe "normal __1\<Esc>\<Esc>__2\<Esc>__3\<Esc>\<Esc>__4\<Esc>__5\<Esc>" exe "%s/\<C-J>/0/g" call assert_equal(['sd', - \ "map __2 asd\<Esc>secondsd\<Esc>sd0map __5 asd0fifth"], - \ getline(1, 2)) + \ "map __2 asd\<Esc>secondsd\<Esc>sd0map __5 asd0fifth"], + \ getline(1, 2)) enew! call delete('Xtestfile') |