Skip to content

Commit 470adb8

Browse files
committed
patch 8.2.1254: MS-Windows: regexp test may fail if 'iskeyword' set wrongly
Problem: MS-Windows: regexp test may fail if 'iskeyword' set wrongly. Solution: Override the 'iskeyword' value. (Taro Muraoka, closes #6502)
1 parent b146e01 commit 470adb8

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_regexp_utf8.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ func Test_equivalence_re2()
3232
endfunc
3333

3434
func s:classes_test()
35+
if has('win32')
36+
set iskeyword=@,48-57,_,192-255
37+
endif
3538
set isprint=@,161-255
3639
call assert_equal('Motörhead', matchstr('Motörhead', '[[:print:]]\+'))
3740

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1254,
757759
/**/
758760
1253,
759761
/**/

0 commit comments

Comments
 (0)