Skip to content

Commit

Permalink
Remove duplicate names from scope search popup
Browse files Browse the repository at this point in the history
There may be duplicate tag names in the list e.g. when performing namespace
search and overloaded methods are found.
  • Loading branch information
techee committed Jan 18, 2016
1 parent cd1a58f commit f10747a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tagmanager/src/tm_workspace.c
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit f10747a

Please sign in to comment.