diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-24 16:51:32 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-24 16:51:32 +0100 |
commit | cd3a13e774823c44cf2e1e483d9e5b6df2cbcf50 (patch) | |
tree | 2cd22376f28cc84b0912c14d6c35dda2e83cbf8e | |
parent | 6a46c19b2507bce632b5e67ef31e47e60a95ed10 (diff) |
patch 9.1.0135: Insufficient testing for 'delcombine'v9.1.0135
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>
-rw-r--r-- | src/testdir/test_options.vim | 30 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 37dc20187e..908f0da124 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -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 diff --git a/src/version.c b/src/version.c index 9ad2015c5a..7ecfc94445 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 135, +/**/ 134, /**/ 133, |