mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-02 09:33:31 +08:00
Correctly resolve temp files on macOS
On macOS, the `$TMPDIR` is in `/var`. However, `/var -> /private/var`. This means that fully resolved temp filenames weren't always getting checked against the proper prefix. This was affecting some of the Haskell plugins, though I'm sure it could have affected any program that resolved past the generated `$TMPDIR/foo` and wound up at a different filename.
This commit is contained in:
@@ -73,6 +73,7 @@ endfunction
|
||||
function! ale#path#IsTempName(filename) abort
|
||||
let l:prefix_list = [
|
||||
\ $TMPDIR,
|
||||
\ resolve($TMPDIR),
|
||||
\ '/run/user',
|
||||
\]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user