diff options
author | Sander van Harmelen <sander@xanzy.io> | 2017-10-15 11:35:33 +0200 |
---|---|---|
committer | Sander van Harmelen <sander@xanzy.io> | 2017-10-15 11:35:33 +0200 |
commit | 090f8a8f38dd2a896b509264007a1e05653cc17d (patch) | |
tree | d4c0f0415281eee4a757723cdd583a6cf32b26aa /autoload | |
parent | 90d4fb139c1c6490c276d7c74b2616cb059e7d01 (diff) | |
download | ale-090f8a8f38dd2a896b509264007a1e05653cc17d.zip |
Fix issue #734
Fixes #734
The main issue was not consitently using the correct buffer.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim index 3c5f0478..6500b309 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -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 |