Fix #1866 - Handle empty output from Perl

This commit is contained in:
w0rp committed 2018-09-06 09:23:54 +01:00
1 parent 30d1b37a56
commit 9518ea9acc
2 files changed
+9

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ let s:begin_failed_skip_pattern = '\v' . join([
\], '|')
function! ale_linters#perl#perl#Handle(buffer, lines) abort
if empty(a:lines)
return []
endif
let l:pattern = '\(.\+\) at \(.\+\) line \(\d\+\)'
let l:output = []
let l:basename = expand('#' . a:buffer . ':t')