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_edit.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_edit.vim')
| -rw-r--r-- | src/nvim/testdir/test_edit.vim | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index ed68bb0f73..65194f49dd 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -1671,8 +1671,8 @@ func Test_edit_ctrl_o_invalid_cmd() close! endfunc -" Test for inserting text at the beginning of a line -func Test_insert_before_first_nonblank() +" Test for inserting text in a line with only spaces ('H' flag in 'cpoptions') +func Test_edit_cpo_H() throw 'Skipped: Nvim does not support cpoptions flag "H"' new call setline(1, ' ') @@ -1686,6 +1686,25 @@ func Test_insert_before_first_nonblank() close! endfunc +" Test for inserting tab in virtual replace mode ('L' flag in 'cpoptions') +func Test_edit_cpo_L() + new + call setline(1, 'abcdefghijklmnopqr') + exe "normal 0gR\<Tab>" + call assert_equal("\<Tab>ijklmnopqr", getline(1)) + set cpo+=L + set list + call setline(1, 'abcdefghijklmnopqr') + exe "normal 0gR\<Tab>" + call assert_equal("\<Tab>cdefghijklmnopqr", getline(1)) + set nolist + call setline(1, 'abcdefghijklmnopqr') + exe "normal 0gR\<Tab>" + call assert_equal("\<Tab>ijklmnopqr", getline(1)) + set cpo-=L + %bw! +endfunc + " Test for editing a directory func Test_edit_is_a_directory() CheckEnglish |