mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 21:42:31 +08:00
#376 Use the window ID for a given buffer for setting the loclist
This commit is contained in:
@@ -255,7 +255,7 @@ endfunction
|
||||
|
||||
function! ale#engine#SetResults(buffer, loclist) abort
|
||||
if g:ale_set_quickfix || g:ale_set_loclist
|
||||
call ale#list#SetLists(a:loclist)
|
||||
call ale#list#SetLists(a:buffer, a:loclist)
|
||||
endif
|
||||
|
||||
if g:ale_set_signs
|
||||
|
||||
@@ -11,11 +11,11 @@ function! ale#list#IsQuickfixOpen() abort
|
||||
return 0
|
||||
endfunction
|
||||
|
||||
function! ale#list#SetLists(loclist) abort
|
||||
function! ale#list#SetLists(buffer, loclist) abort
|
||||
if g:ale_set_quickfix
|
||||
call setqflist(a:loclist)
|
||||
elseif g:ale_set_loclist
|
||||
call setloclist(0, a:loclist)
|
||||
call setloclist(bufwinid(str2nr(a:buffer)), a:loclist)
|
||||
endif
|
||||
|
||||
" If we don't auto-open lists, bail out here.
|
||||
|
||||
Reference in New Issue
Block a user