[geany/geany] a2fb22: Perform filtering in full name with scope

Jiří Techet git-noreply at xxxxx
Sun Jan 23 16:42:17 UTC 2022


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sun, 23 Jan 2022 16:42:17 UTC
Commit:      a2fb228578ad465eabc60d0020d7832e3e4513e3
             https://github.com/geany/geany/commit/a2fb228578ad465eabc60d0020d7832e3e4513e3

Log Message:
-----------
Perform filtering in full name with scope


Modified Paths:
--------------
    src/symbols.c

Modified: src/symbols.c
6 lines changed, 5 insertions(+), 1 deletions(-)
===================================================================
@@ -339,7 +339,10 @@ static GList *get_tag_list(GeanyDocument *doc, TMTagType tag_types)
 		{
 			gboolean filtered = FALSE;
 			gchar **val;
-			gchar *normalized_tagname = g_utf8_normalize(tag->name, -1, G_NORMALIZE_ALL);
+			gchar *full_tagname = g_strconcat(tag->scope ? tag->scope : "",
+				tag->scope ? tm_parser_context_separator(tag->lang) : "",
+				tag->name, NULL);
+			gchar *normalized_tagname = g_utf8_normalize(full_tagname, -1, G_NORMALIZE_ALL);
 
 			foreach_strv(val, tf_strv)
 			{
@@ -363,6 +366,7 @@ static GList *get_tag_list(GeanyDocument *doc, TMTagType tag_types)
 				tag_names = g_list_prepend(tag_names, tag);
 
 			g_free(normalized_tagname);
+			g_free(full_tagname);
 		}
 	}
 	tag_names = g_list_sort(tag_names, compare_symbol_lines);



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


More information about the Commits mailing list