SF.net SVN: geany: [1477] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Apr 24 11:02:27 UTC 2007


Revision: 1477
          http://svn.sourceforge.net/geany/?rev=1477&view=rev
Author:   ntrel
Date:     2007-04-24 04:02:26 -0700 (Tue, 24 Apr 2007)

Log Message:
-----------
Remove duplicate calltips (e.g. from function def and prototype).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/sci_cb.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-04-24 10:52:08 UTC (rev 1476)
+++ trunk/ChangeLog	2007-04-24 11:02:26 UTC (rev 1477)
@@ -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 at btinternet.com>

Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c	2007-04-24 10:52:08 UTC (rev 1476)
+++ trunk/src/sci_cb.c	2007-04-24 11:02:26 UTC (rev 1477)
@@ -732,7 +732,14 @@
 	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))
 		calltip.tag_index = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list