diff --git a/autoload/syntastic/util.vim b/autoload/syntastic/util.vim index 6d0dda6f..2d478631 100644 --- a/autoload/syntastic/util.vim +++ b/autoload/syntastic/util.vim @@ -312,6 +312,8 @@ function! syntastic#util#fname2buf(fname) abort " {{{2 try " Older versions of Vim can throw E94 here let buf = bufnr('^' . escape(fnamemodify(a:fname, md), '\*?,{}[') . '$') + catch + " catch everything endtry if buf != -1 break diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index db522685..42258ea5 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.8.0-93' +let g:_SYNTASTIC_VERSION = '3.8.0-94' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1