Add buffer-local versions for auto_loc_list and loc_list_height.

This commit is contained in:
LCD 47 2014-02-24 10:10:18 +02:00
parent b0191a144c
commit 25271f89ae
2 changed files with 3 additions and 3 deletions

View File

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

View File

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