Add buffer-local versions for auto_loc_list and loc_list_height.
This commit is contained in:
parent
b0191a144c
commit
25271f89ae
@ -20,11 +20,11 @@ endfunction " }}}2
|
||||
function! g:SyntasticAutoloclistNotifier.AutoToggle(loclist) " {{{2
|
||||
call syntastic#log#debug(g:SyntasticDebugNotifications, 'autoloclist: toggle')
|
||||
if !a:loclist.isEmpty()
|
||||
if g:syntastic_auto_loc_list == 1
|
||||
if syntastic#util#var('auto_loc_list') == 1
|
||||
call a:loclist.show()
|
||||
endif
|
||||
else
|
||||
if g:syntastic_auto_loc_list > 0
|
||||
if syntastic#util#var('auto_loc_list') > 0
|
||||
|
||||
"TODO: this will close the loc list window if one was opened by
|
||||
"something other than syntastic
|
||||
|
@ -194,7 +194,7 @@ function! g:SyntasticLoclist.show() " {{{2
|
||||
|
||||
if !self.isEmpty()
|
||||
let num = winnr()
|
||||
execute "lopen " . g:syntastic_loc_list_height
|
||||
execute "lopen " . syntastic#util#var('loc_list_height')
|
||||
if num != winnr()
|
||||
wincmd p
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user