Fixes #734

The main issue was not consitently using the correct buffer.
This commit is contained in:
Sander van Harmelen 2017-10-15 11:35:33 +02:00
parent 90d4fb139c
commit 090f8a8f38

View File

@ -52,7 +52,7 @@ function! ale#ShouldDoNothing(buffer) abort
endif endif
" Do nothing for blacklisted files " Do nothing for blacklisted files
if index(g:ale_filetype_blacklist, &filetype) >= 0 if index(g:ale_filetype_blacklist, getbufvar(a:buffer, '&filetype')) >= 0
return 1 return 1
endif endif
@ -118,7 +118,7 @@ function! s:ALEQueueImpl(delay, linting_flag, buffer) abort
" Remember that we want to check files for this buffer. " Remember that we want to check files for this buffer.
" We will remember this until we finally run the linters, via any event. " We will remember this until we finally run the linters, via any event.
if a:linting_flag is# 'lint_file' if a:linting_flag is# 'lint_file'
let s:should_lint_file_for_buffer[bufnr('%')] = 1 let s:should_lint_file_for_buffer[a:buffer] = 1
endif endif
if s:lint_timer != -1 if s:lint_timer != -1