Skip to content

Commit

Permalink
Fix issue #734
Browse files Browse the repository at this point in the history
Fixes #734

The main issue was not consitently using the correct buffer.
  • Loading branch information
Sander van Harmelen committed Oct 15, 2017
1 parent 90d4fb1 commit 090f8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/ale.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 090f8a8

Please sign in to comment.