aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-25 07:48:54 +0800
committerGitHub <noreply@github.com>2024-02-25 07:48:54 +0800
commit091e374c7f4886ef875e801ae0473b88f6caefe2 (patch)
tree1d0ce226441232c220d2a126164684cfaa7d7c9c
parent71384129f75462f14344df236cf0a22b83da4f4c (diff)
downloadrneovim-091e374c7f4886ef875e801ae0473b88f6caefe2.tar.gz
rneovim-091e374c7f4886ef875e801ae0473b88f6caefe2.tar.bz2
rneovim-091e374c7f4886ef875e801ae0473b88f6caefe2.zip
vim-patch:9.1.0135: Insufficient testing for 'delcombine' (#27616)
Problem: Insufficient testing for 'delcombine'. Solution: Add test for both Normal and Insert modes without Arabic. (zeertzjq) closes: vim/vim#14086 https://github.com/vim/vim/commit/cd3a13e774823c44cf2e1e483d9e5b6df2cbcf50
-rw-r--r--test/old/testdir/test_options.vim30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim
index 52b675f54d..e772a7bb55 100644
--- a/test/old/testdir/test_options.vim
+++ b/test/old/testdir/test_options.vim
@@ -2221,4 +2221,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