Mercurial > vim-gutentags
diff autoload/gutentags/ctags.vim @ 179:411f3fa915f5
Back to getcwd()
this makes changes only when changing dir, not when reading current working directory.
author | Henry Kupty <hkupty@gmail.com> |
---|---|
date | Mon, 13 Mar 2017 12:07:21 -0300 |
parents | 7b9c2f191e69 |
children | 0b4ccd0deceb |
line wrap: on
line diff
--- a/autoload/gutentags/ctags.vim Thu Mar 09 20:03:06 2017 -0300 +++ b/autoload/gutentags/ctags.vim Mon Mar 13 12:07:21 2017 -0300 @@ -65,7 +65,7 @@ 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 = gutentags#pwd() + let l:prev_cwd = getcwd() call gutentags#chdir(fnameescape(a:proj_dir)) let l:tags_file_exists = filereadable(a:tags_file) @@ -170,7 +170,7 @@ let l:cmd .= gutentags#get_execute_cmd_suffix() call gutentags#trace("Running: " . l:cmd) - call gutentags#trace("In: " . gutentags#pwd()) + call gutentags#trace("In: " . getcwd()) if !g:gutentags_fake " Run the background process. if !g:gutentags_trace