diff options
author | David Alexander <TheLonelyGhost@users.noreply.github.com> | 2017-06-15 04:30:34 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-06-15 09:30:34 +0100 |
commit | fb682be1997f812171def14976b5dfbef38c9f0d (patch) | |
tree | 228b20e9676ffc0c1b3be39f57f7a8ff6ec8e09c /autoload/ale.vim | |
parent | f814be45b19ae87c5931e72f67869c1fcdb35c24 (diff) | |
download | ale-fb682be1997f812171def14976b5dfbef38c9f0d.zip |
Fix for Crystal support (#651)
* Strip color from Crystal compiler output
* Don't lint files if the file doesn't exist
* Lint files if they are readable
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r-- | autoload/ale.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim index 9c4be7d2..7cf1def6 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -1,4 +1,4 @@ -" Author: w0rp <devw0rp@gmail.com> +" Author: w0rp <devw0rp@gmail.com>, David Alexander <opensource@thelonelyghost.com> " Description: Primary code path for the plugin " Manages execution of linters when requested by autocommands @@ -85,7 +85,8 @@ function! ale#Lint(...) abort " Check if we previously requested checking the file. if has_key(s:should_lint_file_for_buffer, l:buffer) unlet s:should_lint_file_for_buffer[l:buffer] - let l:should_lint_file = 1 + " Lint files if they exist. + let l:should_lint_file = filereadable(expand('#' . l:buffer . ':p')) endif " Initialise the buffer information if needed. |