aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_visual.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-15 10:11:41 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-15 10:50:21 +0800
commit465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (patch)
treed57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_visual.vim
parentc821b5c6955e6e15039298d50641608168159c01 (diff)
downloadrneovim-465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b.tar.gz
rneovim-465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b.tar.bz2
rneovim-465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b.zip
vim-patch:8.2.0482: channel and sandbox code not sufficiently tested
Problem: Channel and sandbox code not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5855) https://github.com/vim/vim/commit/ca68ae13114619df3e4c195b41ad0575516f5ff6 Cherry-pick test_clientserver.vim changes form patch 8.2.0448.
Diffstat (limited to 'src/nvim/testdir/test_visual.vim')
-rw-r--r--src/nvim/testdir/test_visual.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 84bf0af501..f77765d415 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -284,6 +284,15 @@ func Test_virtual_replace2()
call assert_equal(['abcd',
\ 'efgh',
\ 'ijkl'], getline(1, '$'))
+
+ " Test for truncating spaces in a newly added line using 'autoindent' if
+ " characters are not added to that line.
+ %d_
+ call setline(1, [' app', ' bee', ' cat'])
+ setlocal autoindent
+ exe "normal gg$gRt\n\nr"
+ call assert_equal([' apt', '', ' rat'], getline(1, '$'))
+
" clean up
%d_
set bs&vim