Mercurial > vim-gutentags
changeset 212:11e5b14332fd
Fix gutentags_file_list_command behavior
If we clear the project directory when we have a file list, ctags won't ignore the `-L` command and run on only the files provided.
Addresses the issue I brought up here:
https://github.com/ludovicchabant/vim-gutentags/issues/101
author | Bernardo Farah <ber@bernardo.me> |
---|---|
date | Mon, 21 May 2018 11:48:06 -0700 |
parents | 18dbf8d02b4c |
children | 2c30656d5f3b |
files | plat/unix/update_tags.sh |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plat/unix/update_tags.sh Sun Apr 08 13:27:54 2018 -0700 +++ b/plat/unix/update_tags.sh Mon May 21 11:48:06 2018 -0700 @@ -117,6 +117,8 @@ done > "${TAGS_FILE}.files" fi CTAGS_ARGS="${CTAGS_ARGS} -L ${TAGS_FILE}.files" + # Clear project root if we have a file list + PROJECT_ROOT="" fi echo "Running ctags on whole project" echo "$CTAGS_EXE -f \"$TAGS_FILE.temp\" $CTAGS_ARGS \"$PROJECT_ROOT\""