# HG changeset patch # User Sadrul Habib Chowdhury # Date 1208945518 0 # Node ID 4a05b9db0b911e20b9483d0f4c8494e86cb0a901 # Parent c7c97c62e1319e12c463d5f5dfd187598f41d6da Return FALSE when nothing changes after an attempted tab-completion. Fixes #5591. diff -r c7c97c62e131 -r 4a05b9db0b91 finch/libgnt/gntentry.c --- a/finch/libgnt/gntentry.c Wed Apr 23 02:31:11 2008 +0000 +++ b/finch/libgnt/gntentry.c Wed Apr 23 10:11:58 2008 +0000 @@ -238,8 +238,15 @@ destroy_suggest(entry); return FALSE; } else if (count == 1) { + char *store = g_strndup(entry->start, entry->end - entry->start); + gboolean ret; + destroy_suggest(entry); - return complete_suggest(entry, sgst); + complete_suggest(entry, sgst); + + ret = (strncmp(store, entry->start, entry->end - entry->start) != 0); + g_free(store); + return ret; } else { if (max > 0) { GntWidget *ddown = entry->ddown;