mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-08 05:04:46 +08:00
Fix #676 - Fix handling of Perl errors
This commit is contained in:
1 parent
40f6ee4c39
commit
ce2bfa88eb
4 files changed
+28
-1
No files matched your search
@@ -65,6 +65,13 @@ endfunction
|
||||
" Given a buffer number and a relative or absolute path, return 1 if the
|
||||
" two paths represent the same file on disk.
|
||||
function! ale#path#IsBufferPath(buffer, complex_filename) abort
|
||||
" If the path is one of many different names for stdin, we have a match.
|
||||
if a:complex_filename ==# '-'
|
||||
\|| a:complex_filename ==# 'stdin'
|
||||
\|| a:complex_filename[:0] ==# '<'
|
||||
return 1
|
||||
endif
|
||||
|
||||
let l:test_filename = simplify(a:complex_filename)
|
||||
|
||||
if l:test_filename[:1] ==# './'
|
||||
|
||||
Reference in new issue
Block a user