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
|
function! g:SyntasticAutoloclistNotifier.AutoToggle(loclist) " {{{2
|
||||||
call syntastic#log#debug(g:SyntasticDebugNotifications, 'autoloclist: toggle')
|
call syntastic#log#debug(g:SyntasticDebugNotifications, 'autoloclist: toggle')
|
||||||
if !a:loclist.isEmpty()
|
if !a:loclist.isEmpty()
|
||||||
if g:syntastic_auto_loc_list == 1
|
if syntastic#util#var('auto_loc_list') == 1
|
||||||
call a:loclist.show()
|
call a:loclist.show()
|
||||||
endif
|
endif
|
||||||
else
|
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
|
"TODO: this will close the loc list window if one was opened by
|
||||||
"something other than syntastic
|
"something other than syntastic
|
||||||
|
@ -194,7 +194,7 @@ function! g:SyntasticLoclist.show() " {{{2
|
|||||||
|
|
||||||
if !self.isEmpty()
|
if !self.isEmpty()
|
||||||
let num = winnr()
|
let num = winnr()
|
||||||
execute "lopen " . g:syntastic_loc_list_height
|
execute "lopen " . syntastic#util#var('loc_list_height')
|
||||||
if num != winnr()
|
if num != winnr()
|
||||||
wincmd p
|
wincmd p
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user