Show ellipsis (...) item when there are too many symbol names for
autocompletion. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2944 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
1bee06614b
commit
89ac3b59a4
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
11
src/editor.c
11
src/editor.c
@ -1397,9 +1397,16 @@ autocomplete_tags(GeanyDocument *doc, const gchar *root, gsize rootlen)
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user