1
0
forked from aniani/vim

patch 9.0.1379: functions for handling options are not ordered

Problem:    Functions for handling options are not ordered.
Solution:   Put functions in alphabetical order. (Yegappan Lakshmanan,
            closes #12101)
This commit is contained in:
Yegappan Lakshmanan
2023-03-04 19:57:32 +00:00
committed by Bram Moolenaar
parent c99cbf8f28
commit 5284b23e14
9 changed files with 1338 additions and 1320 deletions

View File

@@ -138,4 +138,32 @@ func Test_backspace_ctrl_u()
close!
endfunc
" Test for setting 'backspace' to a number value (for backward compatibility)
func Test_backspace_number_value()
new
set backspace=0
call setline(1, ['one two', 'three four'])
call cursor(2, 1)
exe "normal! A\<C-W>\<C-U>"
call assert_equal('three four', getline(2))
set backspace=1
exe "normal! A\<CR>five\<C-W>\<C-U>\<C-W>\<C-U>"
call assert_equal(['one two', 'three four'], getline(1, '$'))
set backspace=2
call cursor(2, 7)
exe "normal! ihalf\<C-U>"
call assert_equal('three four', getline(2))
set backspace=3
call cursor(2, 7)
exe "normal! ihalf\<C-U>"
call assert_equal('four', getline(2))
bw!
set backspace&
endfunc
" vim: shiftwidth=2 sts=2 expandtab