Put getmatches check in a more sensible place

This commit is contained in:
Richard Brown 2012-10-01 15:10:53 +01:00
parent c14e8751a1
commit 6382dc2124

View File

@ -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