aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-12 14:09:10 +0800
committerGitHub <noreply@github.com>2024-01-12 14:09:10 +0800
commit3bcf8e5622f29a65564bf2f7672997432e183dfa (patch)
treeadcadbbe89eab73ed31918896c9b390567310eed /test
parent1813661a6197c76ea6621284570aca1d56597099 (diff)
downloadrneovim-3bcf8e5622f29a65564bf2f7672997432e183dfa.tar.gz
rneovim-3bcf8e5622f29a65564bf2f7672997432e183dfa.tar.bz2
rneovim-3bcf8e5622f29a65564bf2f7672997432e183dfa.zip
vim-patch:9.1.0011: regexp cannot match combining chars in collection (#26992)
Problem: regexp cannot match combining chars in collection Solution: Check for combining characters in regex collections for the NFA and BT Regex Engine Also, while at it, make debug mode work again. fixes vim/vim#10286 closes: vim/vim#12871 https://github.com/vim/vim/commit/d2cc51f9a1a5a30ef5d2e732f49d7f495cae24cf Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_regexp_utf8.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/old/testdir/test_regexp_utf8.vim b/test/old/testdir/test_regexp_utf8.vim
index 2253242a7c..97f48a0c09 100644
--- a/test/old/testdir/test_regexp_utf8.vim
+++ b/test/old/testdir/test_regexp_utf8.vim
@@ -599,5 +599,16 @@ func Test_match_too_complicated()
set regexpengine=0
endfunc
+func Test_combining_chars_in_collection()
+ new
+ for i in range(0,2)
+ exe "set re=".i
+ put =['ɔ̃', 'ɔ', '̃ ã', 'abcd']
+ :%s/[ɔ̃]//
+ call assert_equal(['', '', 'ɔ', '̃ ã', 'abcd'], getline(1,'$'))
+ %d
+ endfor
+ bw!
+endfunc
" vim: shiftwidth=2 sts=2 expandtab