comparison src/testdir/test_regexp_utf8.vim @ 32927:49d43532787f v9.0.1771

patch 9.0.1771: regex: combining chars in collections not handled Commit: https://github.com/vim/vim/commit/ca22fc36a4e8a315f199893ee8ff6253573f5fbe Author: Christian Brabandt <cb@256bit.org> Date: Sun Aug 20 20:34:22 2023 +0200 patch 9.0.1771: regex: combining chars in collections not handled 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>
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Aug 2023 20:45:04 +0200
parents 2295ee9c025d
children d415dfae6977
comparison
equal deleted inserted replaced
32926:9e8d26448778 32927:49d43532787f
573 silent! buf \&\zs*\zs*0 573 silent! buf \&\zs*\zs*0
574 bwipe! 574 bwipe!
575 set regexpengine=0 575 set regexpengine=0
576 endfunc 576 endfunc
577 577
578 func Test_combining_chars_in_collection()
579 new
580 for i in range(0,2)
581 exe "set re=".i
582 put =['ɔ̃', 'ɔ', '̃ ã', 'abcd']
583 :%s/[ɔ̃]//
584 call assert_equal(['', '', 'ɔ', '̃ ã', 'abcd'], getline(1,'$'))
585 %d
586 endfor
587 bw!
588 endfunc
578 589
579 " vim: shiftwidth=2 sts=2 expandtab 590 " vim: shiftwidth=2 sts=2 expandtab