SF.net SVN: geany:[2944] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Sep 15 12:37:25 UTC 2008
Revision: 2944
http://geany.svn.sourceforge.net/geany/?rev=2944&view=rev
Author: ntrel
Date: 2008-09-15 12:37:24 +0000 (Mon, 15 Sep 2008)
Log Message:
-----------
Show ellipsis (...) item when there are too many symbol names for
autocompletion.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-09-14 19:36:11 UTC (rev 2943)
+++ trunk/ChangeLog 2008-09-15 12:37:24 UTC (rev 2944)
@@ -1,7 +1,14 @@
+2008-09-15 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/editor.c:
+ Show ellipsis (...) item when there are too many symbol names for
+ autocompletion.
+
+
2008-09-14 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* COPYING: Fixing a little encoding issue in GPL text.
- * po/tr.po, po/LINGUAS, src/about.c, THANKS: Adding Turkish translation
+ * po/tr.po, po/LINGUAS, src/about.c, THANKS: Adding Turkish translation
provided by Gürkan Gür. Thanks for it.
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-09-14 19:36:11 UTC (rev 2943)
+++ trunk/src/editor.c 2008-09-15 12:37:24 UTC (rev 2944)
@@ -1397,9 +1397,16 @@
GString *words = g_string_sized_new(150);
guint j;
- for (j = 0; ((j < tags->len) && (j < editor_prefs.autocompletion_max_entries)); ++j)
+ for (j = 0; j < tags->len; ++j)
{
- if (j > 0) g_string_append_c(words, '\n');
+ if (j > 0)
+ g_string_append_c(words, '\n');
+
+ if (j == editor_prefs.autocompletion_max_entries)
+ {
+ g_string_append(words, "...");
+ break;
+ }
g_string_append(words, ((TMTag *) tags->pdata[j])->name);
}
show_autocomplete(sci, rootlen, words->str);
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