Revision: 4805 http://geany.svn.sourceforge.net/geany/?rev=4805&view=rev Author: ntrel Date: 2010-04-06 17:11:36 +0000 (Tue, 06 Apr 2010)
Log Message: ----------- Fix showing '...' item last instead of first for document word completion.
Modified Paths: -------------- trunk/ChangeLog trunk/src/editor.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-04-06 16:48:59 UTC (rev 4804) +++ trunk/ChangeLog 2010-04-06 17:11:36 UTC (rev 4805) @@ -3,6 +3,9 @@ * src/filetypes.c: Re-detect any document filetypes set to None after reloading filetype extensions (closes #2979661). + * src/editor.c: + Fix showing '...' item last instead of first for document word + completion.
2010-04-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/editor.c =================================================================== --- trunk/src/editor.c 2010-04-06 16:48:59 UTC (rev 4804) +++ trunk/src/editor.c 2010-04-06 17:11:36 UTC (rev 4805) @@ -1853,10 +1853,7 @@ g_free(word);
if (nmatches == editor_prefs.autocompletion_max_entries) - { - g_string_append(words, "... "); break; - } } } ttf.chrg.cpMin = word_end; @@ -1909,6 +1906,9 @@ if (node->next) g_string_append_c(str, '\n'); } + if (g_slist_length(list) >= editor_prefs.autocompletion_max_entries) + g_string_append(str, "\n..."); + g_slist_free(list); g_string_free(words, TRUE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.