diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 11:14:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-15 11:14:22 +0800 |
| commit | 9777907467b29e890556db287b6a9995c0024896 (patch) | |
| tree | d57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_visual.vim | |
| parent | 73f96ce4c638179abb0bd5a9dc48a6a1d0f3a5bd (diff) | |
| parent | 465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (diff) | |
| download | rneovim-9777907467b29e890556db287b6a9995c0024896.tar.gz rneovim-9777907467b29e890556db287b6a9995c0024896.tar.bz2 rneovim-9777907467b29e890556db287b6a9995c0024896.zip | |
Merge pull request #19369 from zeertzjq/vim-8.2.0482
vim-patch:8.2.{0430,0482}: insufficient tests
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 |