diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 10:11:41 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 10:50:21 +0800 |
commit | 465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (patch) | |
tree | d57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_visual.vim | |
parent | c821b5c6955e6e15039298d50641608168159c01 (diff) | |
download | rneovim-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.vim | 9 |
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 |