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

View File

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