diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-04 19:31:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-04 19:31:58 +0800 |
| commit | dce3fc3e9a455426a45db072f28604b1bc63680a (patch) | |
| tree | 225d9bfb031c8c37e5aac0d4ad1ffc6ef3ed5cd8 /src/nvim/testdir/test_virtualedit.vim | |
| parent | b854f2ce093de9593278b371de796f2ace044376 (diff) | |
| download | rneovim-dce3fc3e9a455426a45db072f28604b1bc63680a.tar.gz rneovim-dce3fc3e9a455426a45db072f28604b1bc63680a.tar.bz2 rneovim-dce3fc3e9a455426a45db072f28604b1bc63680a.zip | |
vim-patch:8.2.0540: regexp and other code not tested (#20930)
Problem: Regexp and other code not tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5904)
https://github.com/vim/vim/commit/004a6781b3cf15ca5dd632c38cc09bb3b253d1f8
Diffstat (limited to 'src/nvim/testdir/test_virtualedit.vim')
| -rw-r--r-- | src/nvim/testdir/test_virtualedit.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_virtualedit.vim b/src/nvim/testdir/test_virtualedit.vim index e712896562..ddc7c20637 100644 --- a/src/nvim/testdir/test_virtualedit.vim +++ b/src/nvim/testdir/test_virtualedit.vim @@ -346,6 +346,17 @@ func Test_yank_paste_small_del_reg() set virtualedit= endfunc +" Test for delete that breaks a tab into spaces +func Test_delete_break_tab() + new + call setline(1, "one\ttwo") + set virtualedit=all + normal v3ld + call assert_equal(' two', getline(1)) + set virtualedit& + close! +endfunc + " After calling s:TryVirtualeditReplace(), line 1 will contain one of these " two strings, depending on whether virtual editing is on or off. let s:result_ve_on = 'a x' |