diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-22 12:37:08 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-22 12:37:08 +0100 |
commit | ce2bfa88eb3dbfe1e2d0f6dd8b0781cb61c15cc1 (patch) | |
tree | 434b88cc76f8aeca09a17bd32d27eeb07e9e2f91 /ale_linters/perl | |
parent | 40f6ee4c395214a2d9a245b80c2019dd4e24b9b1 (diff) | |
download | ale-ce2bfa88eb3dbfe1e2d0f6dd8b0781cb61c15cc1.zip |
Fix #676 - Fix handling of Perl errors
Diffstat (limited to 'ale_linters/perl')
-rw-r--r-- | ale_linters/perl/perl.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/perl/perl.vim b/ale_linters/perl/perl.vim index 53c91d36..f4b35ab9 100644 --- a/ale_linters/perl/perl.vim +++ b/ale_linters/perl/perl.vim @@ -27,7 +27,7 @@ function! ale_linters#perl#perl#Handle(buffer, lines) abort let l:text = l:match[1] let l:type = 'E' - if l:match[2][-len(l:basename):] ==# l:basename + if ale#path#IsBufferPath(a:buffer, l:match[2]) \&& l:text !=# 'BEGIN failed--compilation aborted' call add(l:output, { \ 'lnum': l:line, |