# HG changeset patch # User Sadrul Habib Chowdhury # Date 1178382464 0 # Node ID 6502a3846264f9d8176ea1e5310cfcab2b7d98da # Parent ff85eb760c7dc4df02e99256c1aef88ba506915a Fix tab-completion. diff -r ff85eb760c7d -r 6502a3846264 finch/libgnt/gntentry.c --- 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); }