From 55ff49b1a79d557848cb9c156a913538a876ddc6 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 20 Jul 2020 20:22:00 -0400 Subject: [PATCH] vim-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 vim/vim#6502) https://github.com/vim/vim/commit/470adb827f3d9e6cf62f685738d2db216daf3738 --- src/nvim/testdir/test_regexp_utf8.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nvim/testdir/test_regexp_utf8.vim b/src/nvim/testdir/test_regexp_utf8.vim index f48458566b..cfd3d2a48e 100644 --- a/src/nvim/testdir/test_regexp_utf8.vim +++ b/src/nvim/testdir/test_regexp_utf8.vim @@ -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:]]\+'))