Bug fix: safer handling of auto_loc_list.
This commit is contained in:
parent
998179747a
commit
8ab26a2268
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-220'
|
let g:_SYNTASTIC_VERSION = '3.7.0-221'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
@ -234,7 +234,6 @@ function! SyntasticReset() abort " {{{2
|
|||||||
call s:ClearCache(bufnr(''))
|
call s:ClearCache(bufnr(''))
|
||||||
call s:notifiers.refresh(g:SyntasticLoclist.New([]))
|
call s:notifiers.refresh(g:SyntasticLoclist.New([]))
|
||||||
if !empty(get(w:, 'syntastic_loclist_set', []))
|
if !empty(get(w:, 'syntastic_loclist_set', []))
|
||||||
let w:syntastic_loclist_set = []
|
|
||||||
try
|
try
|
||||||
" Vim 7.4.2200 or later
|
" Vim 7.4.2200 or later
|
||||||
call setloclist(0, [], 'r', { 'title': '' })
|
call setloclist(0, [], 'r', { 'title': '' })
|
||||||
@ -419,7 +418,6 @@ function! s:UpdateErrors(buf, auto_invoked, checker_names) abort " {{{2
|
|||||||
let do_jump = 0
|
let do_jump = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let w:syntastic_loclist_set = []
|
|
||||||
if syntastic#util#var('always_populate_loc_list') || do_jump
|
if syntastic#util#var('always_populate_loc_list') || do_jump
|
||||||
call loclist.setloclist(1)
|
call loclist.setloclist(1)
|
||||||
if run_checks && do_jump && !loclist.isEmpty()
|
if run_checks && do_jump && !loclist.isEmpty()
|
||||||
|
@ -29,6 +29,7 @@ function! g:SyntasticAutoloclistNotifier.AutoToggle(loclist) abort " {{{2
|
|||||||
"TODO: this will close the loc list window if one was opened by
|
"TODO: this will close the loc list window if one was opened by
|
||||||
"something other than syntastic
|
"something other than syntastic
|
||||||
call SyntasticLoclistHide()
|
call SyntasticLoclistHide()
|
||||||
|
let w:syntastic_loclist_set = []
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user