Attempted fix for Neovim's setloclist().

This commit is contained in:
LCD 47 2016-09-08 16:53:42 +03:00
parent ec8d6de50f
commit 998179747a
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.7.0-217'
let g:_SYNTASTIC_VERSION = '3.7.0-220'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1
@ -238,7 +238,7 @@ function! SyntasticReset() abort " {{{2
try
" Vim 7.4.2200 or later
call setloclist(0, [], 'r', { 'title': '' })
catch /\m^Vim\%((\a\+)\)\=:E118/
catch /\m^Vim\%((\a\+)\)\=:E\%(118\|731\)/
" do nothing
endtry
endif
@ -633,7 +633,7 @@ function! SyntasticMake(options) abort " {{{2
try
" Vim 7.4.2200 or later
call setloclist(0, [], 'r', { 'title': '' })
catch /\m^Vim\%((\a\+)\)\=:E118/
catch /\m^Vim\%((\a\+)\)\=:E\%(118\|731\)/
" do nothing
endtry
catch /\m^Vim\%((\a\+)\)\=:E776/

View File

@ -300,7 +300,7 @@ function! g:SyntasticLoclist.setloclist(new) abort " {{{2
try
" Vim 7.4.2200 or later
call setloclist(0, [], 'r', { 'title': (self.isEmpty() ? '' : ':SyntasticCheck ' . self._name) })
catch /\m^Vim\%((\a\+)\)\=:E118/
catch /\m^Vim\%((\a\+)\)\=:E\%(118\|731\)/
" do nothing
endtry
call syntastic#util#setLastTick(self._owner)