diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-10 09:45:42 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-10 09:45:42 +0000 |
commit | c528ab1eaa2fa951bde708a094274a4a05e03ebb (patch) | |
tree | 2d20af04305de6a47420af6d82d94df7177d60ca /plugin | |
parent | 5bda8271437dd24e4af52580b3e0fe236c2bbd95 (diff) | |
download | ale-c528ab1eaa2fa951bde708a094274a4a05e03ebb.zip |
Fix #269 Set $TMPDIR to a default value, if not set
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 780d37e0..d65a99cb 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -25,6 +25,12 @@ if !s:has_features finish endif +" Set the TMPDIR environment variable if it is not set automatically. +" This can automatically fix some environments. +if has('unix') && empty($TMPDIR) + let $TMPDIR = '/tmp' +endif + " This global variable is used internally by ALE for tracking information for " each buffer which linters are being run against. let g:ale_buffer_info = {} |