aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-11-14 00:02:29 -0800
committerGitHub <noreply@github.com>2019-11-14 00:02:29 -0800
commite3b08a0fc43eef91b51f8166a036e86b5bdf5613 (patch)
treeaab224f640e8986e377c6d5a7615077f6b8d3f7d /src/nvim/testdir
parent570ee5f404966a6ffd9a5241d91adc6a9f5f2c9d (diff)
parenta0c18bf2017ac7d38d13014a810bda44d09dfcbb (diff)
downloadrneovim-e3b08a0fc43eef91b51f8166a036e86b5bdf5613.tar.gz
rneovim-e3b08a0fc43eef91b51f8166a036e86b5bdf5613.tar.bz2
rneovim-e3b08a0fc43eef91b51f8166a036e86b5bdf5613.zip
Merge #11384 from janlazo/vim-8.1.2293
vim-patch:8.1.{927,2293}
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_join.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_join.vim b/src/nvim/testdir/test_join.vim
index 1c97414164..ecb55c9af6 100644
--- a/src/nvim/testdir/test_join.vim
+++ b/src/nvim/testdir/test_join.vim
@@ -9,6 +9,27 @@ func Test_join_with_count()
call setline(1, ['one', 'two', 'three', 'four'])
normal 10J
call assert_equal('one two three four', getline(1))
+
+ call setline(1, ['one', '', 'two'])
+ normal J
+ call assert_equal('one', getline(1))
+
+ call setline(1, ['one', ' ', 'two'])
+ normal J
+ call assert_equal('one', getline(1))
+
+ call setline(1, ['one', '', '', 'two'])
+ normal JJ
+ call assert_equal('one', getline(1))
+
+ call setline(1, ['one', ' ', ' ', 'two'])
+ normal JJ
+ call assert_equal('one', getline(1))
+
+ call setline(1, ['one', '', '', 'two'])
+ normal 2J
+ call assert_equal('one', getline(1))
+
quit!
endfunc