changeset 159:41fa23706d9c

Don't use the cache directory if it's set as an empty string.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 17 Feb 2017 17:20:57 -0800
parents bba76de4371a
children 1b980f5071a0
files plugin/gutentags.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/gutentags.vim	Wed Feb 15 17:15:00 2017 -0800
+++ b/plugin/gutentags.vim	Fri Feb 17 17:20:57 2017 -0800
@@ -55,7 +55,7 @@
 
 if !exists('g:gutentags_cache_dir')
     let g:gutentags_cache_dir = ''
-else
+elseif !empty(g:gutentags_cache_dir)
     " Make sure we get an absolute/resolved path (e.g. expanding `~/`), and
     " strip any trailing slash.
     let g:gutentags_cache_dir = fnamemodify(g:gutentags_cache_dir, ':p')