diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-12 13:05:59 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-12 13:05:59 +0100 |
commit | ac0abc7c1fb1150edc4359e1a86c2a22e95de71c (patch) | |
tree | ebe0ff7cd658568a35900b0e39bbeaeab6c2d655 /ale_linters/elm | |
parent | 6ef31073dd8f8d094ef7bc5e7152a576ef4f9064 (diff) | |
download | ale-ac0abc7c1fb1150edc4359e1a86c2a22e95de71c.zip |
Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIR
Diffstat (limited to 'ale_linters/elm')
-rw-r--r-- | ale_linters/elm/make.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim index cc14fe4e..d5bc19eb 100644 --- a/ale_linters/elm/make.vim +++ b/ale_linters/elm/make.vim @@ -128,14 +128,7 @@ function! ale_linters#elm#make#HandleElm018Line(line, output) abort endfunction function! ale_linters#elm#make#FileIsBuffer(path) abort - let l:is_windows = has('win32') - let l:temp_dir = l:is_windows ? $TMP : $TMPDIR - - if has('win32') - return a:path[0:len(l:temp_dir) - 1] is? l:temp_dir - else - return a:path[0:len(l:temp_dir) - 1] is# l:temp_dir - endif + return ale#path#IsTempName(a:path) endfunction function! ale_linters#elm#make#ParseMessage(message) abort |