Safer opening of the error window (@blueyed).

This commit is contained in:
LCD 47 2015-05-03 19:45:24 +03:00
parent 3a30321fd0
commit 4605886ea7
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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')

View File

@ -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