Bug fix: Cygwin sets has("unix").

This commit is contained in:
LCD 47 2016-02-04 00:49:02 +02:00
parent de0106e839
commit d8af5028ec
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ endfunction " }}}2
function! syntastic#util#tmpdir() abort " {{{2
let tempdir = ''
if (has('unix') || has('mac')) && executable('mktemp')
if (has('unix') || has('mac')) && executable('mktemp') && !has('win32unix')
" TODO: option "-t" to mktemp(1) is not portable
let tmp = $TMPDIR !=# '' ? $TMPDIR : $TMP !=# '' ? $TMP : '/tmp'
let out = split(syntastic#util#system('mktemp -q -d ' . tmp . '/vim-syntastic-' . getpid() . '-XXXXXXXX'), "\n")

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.7.0-80'
let g:_SYNTASTIC_VERSION = '3.7.0-81'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1