From d8af5028ecd541f721dab769479092b643f47a76 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 4 Feb 2016 00:49:02 +0200 Subject: [PATCH] Bug fix: Cygwin sets has("unix"). --- autoload/syntastic/util.vim | 2 +- plugin/syntastic.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/syntastic/util.vim b/autoload/syntastic/util.vim index e380956b..ccb08410 100644 --- a/autoload/syntastic/util.vim +++ b/autoload/syntastic/util.vim @@ -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") diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index c39319cc..09ce418d 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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