summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-09 00:43:53 +0000
committerw0rp <devw0rp@gmail.com>2017-03-09 00:43:53 +0000
commitad49846a48beab2ed7fe58a799e6a53e99086bb2 (patch)
tree44b1aae0a55fee6a60ba7c28d69e12df3df7f66a /autoload
parent1c3f0b1e197a08e02a2cddfe1c3e0a0e9c62eb44 (diff)
downloadale-ad49846a48beab2ed7fe58a799e6a53e99086bb2.zip
#376 Use the window ID for a given buffer for setting the loclist
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/engine.vim2
-rw-r--r--autoload/ale/list.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index efd5dac1..1ab9c8b2 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -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
diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim
index a086b10c..7b846761 100644
--- a/autoload/ale/list.vim
+++ b/autoload/ale/list.vim
@@ -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.