Mercurial > pidgin
diff finch/libgnt/gntentry.c @ 22698:4a05b9db0b91
Return FALSE when nothing changes after an attempted tab-completion.
Fixes #5591.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 23 Apr 2008 10:11:58 +0000 |
parents | 77737a3526f1 |
children | c9aebd4762a8 |
line wrap: on
line diff
--- 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;