Clear loclist when running lolder at the bottom of the loclist stack.
This saves people some confusion when syntastic_always_populate_loc_list is unset and they try to open the error window with :lopen or :lwindow.
This commit is contained in:
parent
bf2faa4d62
commit
6ce9bf9abd
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:syntastic_start
|
lockvar! g:syntastic_start
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:syntastic_version = '3.5.0-26'
|
let g:syntastic_version = '3.5.0-27'
|
||||||
lockvar g:syntastic_version
|
lockvar g:syntastic_version
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
@ -483,7 +483,15 @@ function! SyntasticMake(options) " {{{2
|
|||||||
execute 'lcd ' . fnameescape(old_cwd)
|
execute 'lcd ' . fnameescape(old_cwd)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
silent! lolder
|
try
|
||||||
|
silent lolder
|
||||||
|
catch /\m^Vim\%((\a\+)\)\=:E380/
|
||||||
|
" E380: At bottom of quickfix stack
|
||||||
|
call setloclist(0, [], 'r')
|
||||||
|
catch /\m^Vim\%((\a\+)\)\=:E776/
|
||||||
|
" E776: No location list
|
||||||
|
" do nothing
|
||||||
|
endtry
|
||||||
|
|
||||||
" restore options {{{3
|
" restore options {{{3
|
||||||
let &errorformat = old_errorformat
|
let &errorformat = old_errorformat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user