Fix #2399 - Do not check buffers used for displaying diffs

This commit is contained in:
w0rp
2019-04-08 13:42:09 +01:00
parent 6d14dc0ac0
commit 9a0ece1ecb
2 changed files with 14 additions and 0 deletions

View File

@@ -43,6 +43,11 @@ function! ale#ShouldDoNothing(buffer) abort
return 1
endif
" Do nothing for diff buffers.
if getbufvar(a:buffer, '&diff')
return 1
endif
" Do nothing for blacklisted files.
if index(get(g:, 'ale_filetype_blacklist', []), l:filetype) >= 0
return 1