Mercurial > pidgin
changeset 16899:6502a3846264
Fix tab-completion.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 05 May 2007 16:27:44 +0000 |
parents | ff85eb760c7d |
children | 9f0686d3d91b |
files | finch/libgnt/gntentry.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/libgnt/gntentry.c Sat May 05 05:19:11 2007 +0000 +++ b/finch/libgnt/gntentry.c Sat May 05 16:27:44 2007 +0000 @@ -75,6 +75,7 @@ int count = 0; GList *iter; const char *text = NULL; + const char *sgst = NULL; if (entry->word) { @@ -116,6 +117,7 @@ gnt_tree_create_row(GNT_TREE(entry->ddown), text), NULL, NULL); count++; + sgst = text; } } g_free(suggest); @@ -125,7 +127,7 @@ return FALSE; } else if (count == 1) { destroy_suggest(entry); - return complete_suggest(entry, text); + return complete_suggest(entry, sgst); } else { gnt_widget_draw(entry->ddown->parent); }