aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-02-14 13:26:42 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2022-02-14 17:29:45 +0000
commitd5d51308c0e531f6c2dec6b5570b3ffe04ab6b45 (patch)
treeee46cad821289274efa9295f883dceec59167382
parentb7e6c1b525613bd0ece6fde8c1bcbc52fdc9372f (diff)
downloadrneovim-d5d51308c0e531f6c2dec6b5570b3ffe04ab6b45.tar.gz
rneovim-d5d51308c0e531f6c2dec6b5570b3ffe04ab6b45.tar.bz2
rneovim-d5d51308c0e531f6c2dec6b5570b3ffe04ab6b45.zip
test(old): cherry-pick test_visual changes from v8.2.2945
https://github.com/vim/vim/commit/59b262362f26b3aaea1eeb0078adc33eed59863e
-rw-r--r--src/nvim/testdir/test_visual.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 2c79ed25f5..d05035b4e9 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -871,6 +871,10 @@ func Test_visual_block_mode()
" reproducible if this operation is performed manually.
"call assert_equal(['aaxa', 'bbxb', 'ccxc'], getline(1, '$'))
call assert_equal(['aaxa', 'bbba', 'ccca'], getline(1, '$'))
+ " Repeat the previous test but use 'l' to move the cursor instead of '$'
+ call setline(1, ['aaa', 'bbb', 'ccc'])
+ exe "normal! gg2l\<C-V>2jA\<Left>x"
+ call assert_equal(['aaxa', 'bbxb', 'ccxc'], getline(1, '$'))
" Change a characterwise motion to a blockwise motion using CTRL-V
%d _