Make temporary file detection work on just about all platforms

This commit is contained in:
w0rp
2017-09-14 00:11:17 +01:00
parent 71c2e65d64
commit a59d1ddbf3
4 changed files with 7 additions and 22 deletions

View File

@@ -375,7 +375,7 @@ function! ale#engine#FixLocList(buffer, linter_name, loclist) abort
\}
if has_key(l:old_item, 'filename')
\&& l:old_item.filename[:len(s:temp_dir) - 1] isnot# s:temp_dir
\&& !ale#path#IsTempName(l:old_item.filename)
" Use the filename given.
" Temporary files are assumed to be for this buffer,
" and the filename is not included then, because it looks bad