Merge pull request #998 from svanharmelen/b-fix-734

Fix #734 - Use the correct buffer for the filetype blacklist and such
This commit is contained in:
w0rp 2017-10-15 10:57:21 +01:00 committed by GitHub
commit a790077136
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ function! ale#ShouldDoNothing(buffer) abort
endif
" 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
endif
@ -118,7 +118,7 @@ function! s:ALEQueueImpl(delay, linting_flag, buffer) abort
" Remember that we want to check files for this buffer.
" We will remember this until we finally run the linters, via any event.
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
if s:lint_timer != -1