# HG changeset patch # User Ludovic Chabant # Date 1438032349 25200 # Node ID fa749380e05a5ce04e5c4e24e336813034fa72f2 # Parent d12543f11eb90b23956c7e584d6cd8496cf0f216 Make sure we expand the cache directory before we auto-create it. This is because Vim functions like `isdirectory` won't work with paths like `~/foo/bar`, for instance. diff -r d12543f11eb9 -r fa749380e05a plugin/gutentags.vim --- a/plugin/gutentags.vim Mon Jul 27 14:18:10 2015 -0700 +++ b/plugin/gutentags.vim Mon Jul 27 14:25:49 2015 -0700 @@ -69,6 +69,9 @@ if !exists('g:gutentags_cache_dir') let g:gutentags_cache_dir = '' else + " 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') let g:gutentags_cache_dir = fnamemodify(g:gutentags_cache_dir, ':s?[/\\]$??') endif