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:
parent
09d0a091f0
commit
ffae882541
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user