[geany/geany] f10747: Remove duplicate names from scope search popup
Jiří Techet
git-noreply at xxxxx
Thu Feb 11 14:36:02 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Mon, 18 Jan 2016 22:00:19 UTC
Commit: f10747ae5ab668931706f864a12776662b294ee6
https://github.com/geany/geany/commit/f10747ae5ab668931706f864a12776662b294ee6
Log Message:
-----------
Remove duplicate names from scope search popup
There may be duplicate tag names in the list e.g. when performing namespace
search and overloaded methods are found.
Modified Paths:
--------------
tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_workspace.c
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -1030,6 +1030,7 @@ tm_workspace_find_scope_members (TMSourceFile *source_file, const char *name,
tm_tag_macro_with_arg_t | tm_tag_prototype_t;
TMTagType tag_type = tm_tag_max_t &
~(function_types | tm_tag_enumerator_t | tm_tag_namespace_t | tm_tag_package_t);
+ TMTagAttrType sort_attr[] = {tm_tag_attr_name_t, 0};
if (function)
tag_type = function_types;
@@ -1052,6 +1053,8 @@ tm_workspace_find_scope_members (TMSourceFile *source_file, const char *name,
g_ptr_array_free(tags, TRUE);
+ tm_tags_dedup(member_tags, sort_attr, FALSE);
+
return member_tags;
}
--------------
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