# HG changeset patch # User Ludovic Chabant # Date 1420951549 28800 # Node ID 8b3c611a4d3b0f9ea62091925cc9b8137ddd5054 # Parent 448c128e295263bd21cdc7f966cef9d3431e69e6 Support project directories with spaces in them. Note that ctags seems to not like spaces in the output tags file, so it's a good idea to put tags somewhere else with `g:gutentags_cache_dir`. diff -r 448c128e2952 -r 8b3c611a4d3b plugin/gutentags.vim --- a/plugin/gutentags.vim Fri Jan 09 09:01:32 2015 -0800 +++ b/plugin/gutentags.vim Sat Jan 10 20:45:49 2015 -0800 @@ -190,7 +190,7 @@ " Set the tags file for Vim to use. if g:gutentags_auto_set_tags - execute 'setlocal tags^=' . b:gutentags_file + execute 'setlocal tags^=' . fnameescape(b:gutentags_file) endif " Autocommands for updating the tags on save. @@ -370,7 +370,7 @@ call s:trace("") finally " Restore the current directory... - execute "chdir " . l:prev_cwd + execute "chdir " . fnameescape(l:prev_cwd) endtry endfunction