]> granicus.if.org Git - vim/commitdiff
patch 8.2.1254: MS-Windows: regexp test may fail if 'iskeyword' set wrongly v8.2.1254
authorBram Moolenaar <Bram@vim.org>
Mon, 20 Jul 2020 19:21:30 +0000 (21:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 20 Jul 2020 19:21:30 +0000 (21:21 +0200)
Problem:    MS-Windows: regexp test may fail if 'iskeyword' set wrongly.
Solution:   Override the 'iskeyword' value. (Taro Muraoka, closes #6502)

src/testdir/test_regexp_utf8.vim
src/version.c

index e8e67a62ce22a6a2991b84f23373c04fdff874ed..5100b378a90d7a60f0c3e145c38ad4aa4aa591b6 100644 (file)
@@ -32,6 +32,9 @@ func Test_equivalence_re2()
 endfunc
 
 func s:classes_test()
+  if has('win32')
+    set iskeyword=@,48-57,_,192-255
+  endif
   set isprint=@,161-255
   call assert_equal('Motörhead', matchstr('Motörhead', '[[:print:]]\+'))
 
index daec76500d6cd8d413c1908aa9480edb33b97de2..8cedb1cb9973a5071224e7cdccbae74c5c26d050 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1254,
 /**/
     1253,
 /**/