summaryrefslogtreecommitdiff
path: root/plugin
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 /plugin
parent1c3f0b1e197a08e02a2cddfe1c3e0a0e9c62eb44 (diff)
downloadale-ad49846a48beab2ed7fe58a799e6a53e99086bb2.zip
#376 Use the window ID for a given buffer for setting the loclist
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index bdbf3ad1..8fa0093c 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -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