diff --git a/autoload/syntastic/util.vim b/autoload/syntastic/util.vim index ccb08410..8a593457 100644 --- a/autoload/syntastic/util.vim +++ b/autoload/syntastic/util.vim @@ -240,7 +240,12 @@ function! syntastic#util#findGlobInParent(what, where) abort " {{{2 let old = '' while here !=# '' - let p = split(globpath(here, a:what, 1), '\n') + try + " Vim 7.4.279 and later + let p = globpath(here, a:what, 1, 1) + catch /\m^Vim\%((\a\+)\)\=:E118/ + let p = split(globpath(here, a:what, 1), "\n") + endtry if !empty(p) return fnamemodify(p[0], ':p') @@ -499,7 +504,13 @@ function! s:_rmrf(what) abort " {{{2 return endif - for f in split(globpath(a:what, '*', 1), "\n") + try + " Vim 7.4.279 and later + let entries = globpath(a:what, '*', 1, 1) + catch /\m^Vim\%((\a\+)\)\=:E118/ + let entries = split(globpath(a:what, '*', 1), "\n") + endtry + for f in entries call s:_rmrf(f) endfor silent! call syntastic#util#system(s:rmdir . ' ' . syntastic#util#shescape(a:what)) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 52eeb438..16e22a49 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-95' +let g:_SYNTASTIC_VERSION = '3.7.0-96' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/plugin/syntastic/signs.vim b/plugin/syntastic/signs.vim index be53c69a..e3bafa0d 100644 --- a/plugin/syntastic/signs.vim +++ b/plugin/syntastic/signs.vim @@ -20,7 +20,8 @@ let s:setup_done = 0 " Public methods {{{1 function! g:SyntasticSignsNotifier.New() abort " {{{2 - return copy(self) + let newObj = copy(self) + return newObj endfunction " }}}2 function! g:SyntasticSignsNotifier.enabled() abort " {{{2