jsfaint / gen_tags.vim

Async plugin for vim and neovim to ease the use of ctags/gtags
https://vim.sourceforge.io/scripts/script.php?script_id=5499
MIT License
312 stars 42 forks source link

Preserve the working directory for :GenGTAGS #90

Closed ShikChen closed 5 years ago

ShikChen commented 5 years ago

It's annoying to be automatically switched to project root when generating gtags, especially when working on a subcomponent within a large project.

jsfaint commented 5 years ago

In the original code, it DO backup and restore the CWD, but I just can't remember why it was refactored into current code

jsfaint commented 5 years ago

I searched the history. The backup/restore was removed in this commit ca2fe1b81624d54fd2d726d54efd777b98c16837, and then a related bug was fixed in commit a95b7259b0baaea200b68c03a341d5a80021708f. So I think this PR is good for me. Thanks for the PR