summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorJacob Zimmerman <zimmerman.jake@gmail.com>2017-07-09 02:13:14 -0500
committerJacob Zimmerman <zimmerman.jake@gmail.com>2017-07-09 02:16:46 -0500
commita70591fa764f893e1111704778dca7cd171476e3 (patch)
tree4297d51f8ccebbdecad4aba7841d210e43be3eeb /autoload
parentab47011ef2cbe1774571a5031034328bbc4e6edd (diff)
downloadale-a70591fa764f893e1111704778dca7cd171476e3.zip
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.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/path.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim
index 5c8cf74e..9ac3d8f2 100644
--- a/autoload/ale/path.vim
+++ b/autoload/ale/path.vim
@@ -73,6 +73,7 @@ endfunction
function! ale#path#IsTempName(filename) abort
let l:prefix_list = [
\ $TMPDIR,
+ \ resolve($TMPDIR),
\ '/run/user',
\]