Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 06 May 2018 17:55:57 UTC Commit: 22b4efb1411caa79e63e120b9d2f44b44aa0d994 https://github.com/geany/geany-plugins/commit/22b4efb1411caa79e63e120b9d2f44...
Log Message: ----------- geanyctags: Add apostrophes around generated tags file
This should fix problems when the project file (and as a result the tags file too) contains spaces.
Fixes the geany-plugins part of #738
Modified Paths: -------------- geanyctags/src/geanyctags.c
Modified: geanyctags/src/geanyctags.c 8 lines changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -221,8 +221,8 @@ on_generate_tags(GtkMenuItem *menuitem, gpointer user_data) #ifndef G_OS_WIN32 gchar *find_string = generate_find_string(prj); cmd = g_strconcat(find_string, - " | ctags --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -L - -f ", - tag_filename, NULL); + " | ctags --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -L - -f '", + tag_filename, "'", NULL); g_free(find_string); #else /* We don't have find and | on windows, generate tags for all files in the project (-R recursively) */ @@ -232,8 +232,8 @@ on_generate_tags(GtkMenuItem *menuitem, gpointer user_data) * refuses to overwrite it. Therefore, we need to delete the tags file manually. */ g_unlink(tag_filename);
- cmd = g_strconcat("ctags.exe -R --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -f ", - tag_filename, NULL); + cmd = g_strconcat("ctags.exe -R --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -f "", + tag_filename, """, NULL); #endif
spawn_cmd(cmd, prj->base_path);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org