[geany/geany-plugins] 0c2640: projectorganizer: only show tags belonging to the project when searching for a tag

Jiří Techet git-noreply at xxxxx
Wed Jul 1 16:26:45 UTC 2015


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Wed, 01 Jul 2015 16:26:45 UTC
Commit:      0c26408fa145ef24d2a5b465614fb617288f922a
             https://github.com/geany/geany-plugins/commit/0c26408fa145ef24d2a5b465614fb617288f922a

Log Message:
-----------
projectorganizer: only show tags belonging to the project when searching for a tag


Modified Paths:
--------------
    projectorganizer/src/prjorg-sidebar.c

Modified: projectorganizer/src/prjorg-sidebar.c
5 lines changed, 3 insertions(+), 2 deletions(-)
===================================================================
@@ -618,8 +618,9 @@ static void find_tags(const gchar *name, gboolean declaration, gboolean case_sen
 			gchar *relpath;
 
 			relpath = get_relative_path(utf8_base_path, utf8_fname);
-			msgwin_msg_add(COLOR_BLACK, -1, NULL, "%s:%lu:\n\t[%s]\t %s%s%s", relpath,
-				tag->line, tm_tag_type_name(tag), scopestr, tag->name, tag->arglist ? tag->arglist : "");
+			if (relpath)
+				msgwin_msg_add(COLOR_BLACK, -1, NULL, "%s:%lu:\n\t[%s]\t %s%s%s", relpath,
+					tag->line, tm_tag_type_name(tag), scopestr, tag->name, tag->arglist ? tag->arglist : "");
 			g_free(scopestr);
 			g_free(relpath);
 			g_free(utf8_fname);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list