summaryrefslogtreecommitdiff
path: root/autoload/ale.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r--autoload/ale.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim
index cd106887..a887834b 100644
--- a/autoload/ale.vim
+++ b/autoload/ale.vim
@@ -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