Mercurial > vim-gutentags
diff autoload/gutentags/ctags.vim @ 177:7b9c2f191e69
Another take on fixing tcd brakeage
author | Henry Kupty <hkupty@gmail.com> |
---|---|
date | Thu, 09 Mar 2017 19:15:04 -0300 |
parents | 2cf3fb66285b |
children | 411f3fa915f5 |
line wrap: on
line diff
--- a/autoload/gutentags/ctags.vim Tue Feb 21 12:36:45 2017 -0800 +++ b/autoload/gutentags/ctags.vim Thu Mar 09 19:15:04 2017 -0300 @@ -65,8 +65,8 @@ function! gutentags#ctags#generate(proj_dir, tags_file, write_mode) abort " Get to the tags file directory because ctags is finicky about " these things. - let l:prev_cwd = getcwd() - execute "chdir " . fnameescape(a:proj_dir) + let l:prev_cwd = gutentags#pwd() + call gutentags#chdir(fnameescape(a:proj_dir)) let l:tags_file_exists = filereadable(a:tags_file) let l:tags_file_is_local = match(a:tags_file, '\v[/\\]') < 0