From: Hiroshi Shrirosaki Date: Sun, 17 Jan 2016 02:58:02 +0000 (+0900) Subject: make test works on Windows X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/fc34c5a75a10b4e15530f0209f0ea1b70fa4f077 make test works on Windows --- diff --git a/test/vimrc b/test/vimrc index 59c6163..524fe6c 100644 --- a/test/vimrc +++ b/test/vimrc @@ -2,6 +2,7 @@ set nocompatible set rtp+=../ set rtp+=../build/tabular/ set rtp+=../build/vader.vim/ +let $LANG='en_US' filetype on filetype plugin on filetype indent on @@ -14,7 +15,7 @@ function! Markdown_GetScriptID(fname) abort redir END let a:mx = '^\s*\(\d\+\):\s*\(.*\)$' for a:line in split(a:snlist, "\n") - if stridx(a:line, a:fname) >= 0 + if stridx(substitute(a:line, '\\', '/', 'g'), a:fname) >= 0 return substitute(a:line, a:mx, '\1', '') endif endfor