Remove duplicate calltips (e.g. from function def and prototype).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1477 ea778897-0a13-0410-b9d1-a72fbfd435f5
master
Nick Treleaven 2007-04-24 11:02:26 +00:00
parent 8154ee59c8
commit cdd780edac
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,8 @@
* src/search.c:
Disable FIF extra options entry when checkbox is not checked.
* src/sci_cb.c:
Remove duplicate calltips (e.g. from function def and prototype).
2007-04-23 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -732,6 +732,13 @@ static gchar *find_calltip(const gchar *word, filetype *ft)
tm_tags_prune((GPtrArray *) tags);
if (tags->len == 0)
return NULL;
else
{ // remove duplicate calltips
TMTagAttrType sort_attr[] = {tm_tag_attr_name_t, tm_tag_attr_scope_t,
tm_tag_attr_arglist_t, 0};
tm_tags_sort((GPtrArray *) tags, sort_attr, TRUE);
}
// if the current word has changed since last time, start with the first tag match
if (! utils_str_equal(word, calltip.last_word))