Mercurial > vim-gutentags
diff autoload/gutentags.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 | c2e0dac0be42 |
children | 8bac4b955c84 |
line wrap: on
line diff
--- a/autoload/gutentags.vim Thu Mar 09 20:03:06 2017 -0300 +++ b/autoload/gutentags.vim Mon Mar 13 12:07:21 2017 -0300 @@ -2,14 +2,6 @@ " Utilities {{{ -function! gutentags#pwd() - if has('nvim') - return haslocaldir() ? getcwd(0, 0) : haslocaldir(-1, 0) ? getcwd(-1, 0) : getcwd() - else - return getcwd() - endif -endfunction - function! gutentags#chdir(path) if has('nvim') let chdir = haslocaldir() ? 'lcd' : haslocaldir(-1, 0) ? 'tcd' : 'cd' @@ -402,7 +394,7 @@ " Switch to the project root to make the command line smaller, and make " it possible to get the relative path of the filename to parse if we're " doing an incremental update. - let l:prev_cwd = gutentags#pwd() + let l:prev_cwd = getcwd() call gutentags#chdir(fnameescape(l:proj_dir)) try call call("gutentags#".a:module."#generate",