diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-12 14:36:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 14:36:05 +0800 |
| commit | 8b75ca734541a42bf0d3f3fd8e39e94662084895 (patch) | |
| tree | 688fb3b654823d7579964495fb4c5af58f7e7bd8 /src/nvim/testdir/test_join.vim | |
| parent | 540d1af90e2276a8bd3b5edb1a63c8225a1aa423 (diff) | |
| parent | 1abdb3224b177078b046873dadb81381960ad52b (diff) | |
| download | rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.gz rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.tar.bz2 rneovim-8b75ca734541a42bf0d3f3fd8e39e94662084895.zip | |
Merge pull request #19332 from zeertzjq/vim-8.2.0270
vim-patch:8.2.{0270,2732}
Diffstat (limited to 'src/nvim/testdir/test_join.vim')
| -rw-r--r-- | src/nvim/testdir/test_join.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_join.vim b/src/nvim/testdir/test_join.vim index ac6ef8f29f..1f7a0825a5 100644 --- a/src/nvim/testdir/test_join.vim +++ b/src/nvim/testdir/test_join.vim @@ -437,5 +437,11 @@ func Test_join_lines() call setline(1, ['a', 'b', '', 'c', 'd']) normal 5J call assert_equal('a b c d', getline(1)) + call setline(1, ['a', 'b', 'c']) + 2,2join + call assert_equal(['a', 'b', 'c'], getline(1, '$')) + call assert_equal(2, line('.')) + 2join + call assert_equal(['a', 'b c'], getline(1, '$')) bwipe! endfunc |