Safer opening of the error window (@blueyed).
This commit is contained in:
parent
3a30321fd0
commit
4605886ea7
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.6.0-78'
|
||||
let g:_SYNTASTIC_VERSION = '3.6.0-79'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -29,7 +29,7 @@ function! g:SyntasticHighlightingNotifier.enabled() abort " {{{2
|
||||
return s:has_highlighting && syntastic#util#var('enable_highlighting')
|
||||
endfunction " }}}2
|
||||
|
||||
" Sets error highlights in the cuirrent window
|
||||
" Sets error highlights in the current window
|
||||
function! g:SyntasticHighlightingNotifier.refresh(loclist) abort " {{{2
|
||||
if self.enabled()
|
||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'highlighting: refresh')
|
||||
|
@ -306,7 +306,7 @@ function! g:SyntasticLoclist.show() abort " {{{2
|
||||
let num = winnr()
|
||||
execute 'lopen ' . syntastic#util#var('loc_list_height')
|
||||
if num != winnr()
|
||||
wincmd p
|
||||
execute num . 'wincmd w'
|
||||
endif
|
||||
|
||||
" try to find the loclist window and set w:quickfix_title
|
||||
|
Loading…
Reference in New Issue
Block a user