From: <sa...@us...> - 2006-08-12 15:17:19
|
Revision: 16723 Author: sadrul Date: 2006-08-12 08:17:14 -0700 (Sat, 12 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16723&view=rev Log Message: ----------- Tab-completion should be case-insensitive. Modified Paths: -------------- trunk/console/libgnt/gntentry.c Modified: trunk/console/libgnt/gntentry.c =================================================================== --- trunk/console/libgnt/gntentry.c 2006-08-12 12:57:16 UTC (rev 16722) +++ trunk/console/libgnt/gntentry.c 2006-08-12 15:17:14 UTC (rev 16723) @@ -80,7 +80,7 @@ for (count = 0, iter = entry->suggests; iter; iter = iter->next) { const char *text = iter->data; - if (strncmp(suggest, text, len) == 0 && strlen(text) >= len) + if (g_ascii_strncasecmp(suggest, text, len) == 0 && strlen(text) >= len) { gnt_tree_add_row_after(GNT_TREE(entry->ddown), (gpointer)text, gnt_tree_create_row(GNT_TREE(entry->ddown), text), @@ -258,10 +258,9 @@ { char *s = get_beginning_of_word(entry); char *iter = text; - while (*s == *iter) + while (toupper(*s) == toupper(*iter)) { - s++; - iter++; + *s++ = *iter++; } gnt_entry_key_pressed(widget, iter); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |