slight modification to auto_loc_list behavior

g:syntastic_auto_loc now has the following possible options:

1 or "full_auto" or "fully_auto" behaves as normal, closing the loclist
when there are no errors and opening when there are errors.

2 or "semi_auto" will automatically close the loclist but _not_
automatically open it.
This commit is contained in:
Donald Ephraim Curtis 2011-02-14 15:25:33 -06:00
parent 09d0a091f0
commit ffae882541

View File

@ -59,9 +59,11 @@ function! s:UpdateErrors()
if g:syntastic_auto_jump
silent!ll
endif
elseif g:syntastic_auto_loc_list == 2 || g:syntastic_auto_loc_list =~ "semi_auto"
lclose
endif
if g:syntastic_auto_loc_list
if g:syntastic_auto_loc_list == 1 || g:syntastic_auto_loc_list =~ "fully\\?_auto"
if s:BufHasErrorsOrWarningsToDisplay()
call s:ShowLocList()
else