#376 Use the window ID for a given buffer for setting the loclist

This commit is contained in:
w0rp
2017-03-09 00:43:53 +00:00
parent 1c3f0b1e19
commit ad49846a48
5 changed files with 29 additions and 14 deletions

View File

@@ -194,7 +194,9 @@ function! s:ALEToggle() abort
" Lint immediately
call ale#Queue(0)
else
for l:buffer in keys(g:ale_buffer_info)
" Make sure the buffer number is a number, not a string,
" otherwise things can go wrong.
for l:buffer in map(keys(g:ale_buffer_info), 'str2nr(v:val)')
" Stop jobs and delete stored buffer data
call ale#cleanup#Buffer(l:buffer)
" Clear signs, loclist, quicklist