0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0135: Insufficient testing for 'delcombine'

Problem:  Insufficient testing for 'delcombine'.
Solution: Add test for both Normal and Insert modes without Arabic.
          (zeertzjq)

closes: #14086

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq 2024-02-24 16:51:32 +01:00 committed by Christian Brabandt
parent 6a46c19b25
commit cd3a13e774
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 32 additions and 0 deletions

View File

@ -2234,4 +2234,34 @@ func Test_set_wrap()
set wrap& smoothscroll& scrolloff&
endfunc
func Test_delcombine()
new
set backspace=indent,eol,start
set delcombine
call setline(1, 'β̳̈:β̳̈')
normal! 0x
call assert_equal('β̈:β̳̈', getline(1))
exe "normal! A\<BS>"
call assert_equal('β̈:β̈', getline(1))
normal! 0x
call assert_equal('β:β̈', getline(1))
exe "normal! A\<BS>"
call assert_equal('β:β', getline(1))
normal! 0x
call assert_equal(':β', getline(1))
exe "normal! A\<BS>"
call assert_equal(':', getline(1))
set nodelcombine
call setline(1, 'β̳̈:β̳̈')
normal! 0x
call assert_equal(':β̳̈', getline(1))
exe "normal! A\<BS>"
call assert_equal(':', getline(1))
set backspace& delcombine&
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
135,
/**/
134,
/**/