From 998179747a5715114c5a9e9b94317d73f4fd4d3d Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 8 Sep 2016 16:53:42 +0300 Subject: [PATCH] Attempted fix for Neovim's setloclist(). --- plugin/syntastic.vim | 6 +++--- plugin/syntastic/loclist.vim | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index be020dea..a2874d71 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-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/ diff --git a/plugin/syntastic/loclist.vim b/plugin/syntastic/loclist.vim index c5a53327..923bb54d 100644 --- a/plugin/syntastic/loclist.vim +++ b/plugin/syntastic/loclist.vim @@ -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)