some minor cleanups
This commit is contained in:
parent
33d7086c34
commit
3dee539a2e
@ -145,11 +145,12 @@ function! s:CacheErrors()
|
|||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"return true if there are cached errors for this buf
|
"return true if there are cached errors/warnings for this buf
|
||||||
function! s:BufHasErrorsOrWarnings()
|
function! s:BufHasErrorsOrWarnings()
|
||||||
return exists("b:syntastic_loclist") && !empty(b:syntastic_loclist)
|
return exists("b:syntastic_loclist") && !empty(b:syntastic_loclist)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"return true if there are cached errors for this buf
|
||||||
function! s:BufHasErrors()
|
function! s:BufHasErrors()
|
||||||
if exists("b:syntastic_loclist")
|
if exists("b:syntastic_loclist")
|
||||||
for i in b:syntastic_loclist
|
for i in b:syntastic_loclist
|
||||||
@ -158,10 +159,8 @@ function! s:BufHasErrors()
|
|||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
return 0
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
"use >> to display syntax errors in the sign column
|
"use >> to display syntax errors in the sign column
|
||||||
sign define SyntasticError text=>> texthl=error
|
sign define SyntasticError text=>> texthl=error
|
||||||
sign define SyntasticWarning text=>> texthl=todo
|
sign define SyntasticWarning text=>> texthl=todo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user