Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #374 from rbrown/getmatches

Put getmatches check in a more sensible place
  • Loading branch information...
commit 2ad1437af7224629677231f8830b1ee204b91e40 2 parents c14e875 + 6382dc2
@scrooloose authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 plugin/syntastic.vim
View
10 plugin/syntastic.vim
@@ -54,6 +54,12 @@ if !exists("g:syntastic_enable_highlighting")
let g:syntastic_enable_highlighting = 1
endif
+" highlighting requires getmatches introduced in 7.1.040
+if g:syntastic_enable_highlighting == 1 &&
+ \ (v:version < 701 || v:version == 701 && has('patch040'))
+ let g:syntastic_enable_highlighting = 1
+endif
+
if !exists("g:syntastic_echo_current_error")
let g:syntastic_echo_current_error = 1
endif
@@ -138,9 +144,7 @@ function! s:UpdateErrors(auto_invoked)
call s:RefreshSigns()
endif
- " highlighting requires getmatches introduced in 7.1.040"
- if g:syntastic_enable_highlighting &&
- \ (v:version > 702 || v:version == 701 && has('patch040'))
+ if g:syntastic_enable_highlighting
call s:HighlightErrors()
endif
Please sign in to comment.
Something went wrong with that request. Please try again.