summaryrefslogtreecommitdiff
path: root/src/testdir/test_edit.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-13 13:20:48 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-13 13:20:48 +0200
commitc9630d2658af9dcaa01913e899b201bfdef7b536 (patch)
tree5e7b82918122171b6d253528dd87d29bac2a80c5 /src/testdir/test_edit.vim
parent71ccd03ee8a43b20000214a9c99dcc90f039edca (diff)
downloadvim-git-c9630d2658af9dcaa01913e899b201bfdef7b536.tar.gz
patch 8.2.0968: no proper testing of the 'cpoptions' flagsv8.2.0968
Problem: No proper testing of the 'cpoptions' flags. Solution: Add tests. (Yegappan Lakshmanan, closes #6251)
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r--src/testdir/test_edit.vim33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim
index dabe8fbdc..a5703013a 100644
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -1574,37 +1574,4 @@ func Test_edit_ctrl_o_invalid_cmd()
close!
endfunc
-" Test for inserting text in a line with only spaces ('H' flag in 'cpoptions')
-func Test_edit_cpo_H()
- new
- call setline(1, ' ')
- normal! Ia
- call assert_equal(' a', getline(1))
- set cpo+=H
- call setline(1, ' ')
- normal! Ia
- call assert_equal(' a ', getline(1))
- set cpo-=H
- 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
-
" vim: shiftwidth=2 sts=2 expandtab