Mercurial > pidgin
changeset 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 | c7c97c62e131 |
children | 72141dd0f8c0 |
files | finch/libgnt/gntentry.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
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;