aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-25 21:27:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-25 21:27:48 +1200
commit6dcd250f4fa39e3ac414338adbf6f95fc66fc04f (patch)
tree395727e885e8e6088ee70a5981d3b73de7d89e2c /vim/autoload
parentCorrect absolute test (diff)
downloaddotfiles-6dcd250f4fa39e3ac414338adbf6f95fc66fc04f.tar.gz
dotfiles-6dcd250f4fa39e3ac414338adbf6f95fc66fc04f.zip
Handle invalid XDG cache home
Diffstat (limited to 'vim/autoload')
-rw-r--r--vim/autoload/xdg.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/autoload/xdg.vim b/vim/autoload/xdg.vim
index b1bc523a..675cf460 100644
--- a/vim/autoload/xdg.vim
+++ b/vim/autoload/xdg.vim
@@ -27,7 +27,7 @@ function! xdg#CacheDir(name) abort
let name = a:name
let home = s:Get('XDG_CACHE_HOME')
if !s:Absolute(home)
- return
+ return ''
endif
return join([home, name], '/')
endfunction