diff options
author | Christian Brabandt <cb@256bit.org> | 2023-08-20 20:34:22 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-20 20:38:56 +0200 |
commit | ca22fc36a4e8a315f199893ee8ff6253573f5fbe (patch) | |
tree | 04f91cc7a7e558105aa025b2c8a39017d45a4497 /src/testdir/test_regexp_utf8.vim | |
parent | a6ab5e69d3f14da8036a3018e8e93c635803ee8b (diff) |
patch 9.0.1771: regex: combining chars in collections not handledv9.0.1771
Problem: regex: combining chars in collections not handled
Solution: Check for following combining characters for NFA and BT engine
closes: #10459
closes: #10286
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_regexp_utf8.vim')
-rw-r--r-- | src/testdir/test_regexp_utf8.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_regexp_utf8.vim b/src/testdir/test_regexp_utf8.vim index b591aedbb7..6669dee57e 100644 --- a/src/testdir/test_regexp_utf8.vim +++ b/src/testdir/test_regexp_utf8.vim @@ -575,5 +575,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 |