Revision 757348e257be05fd941d26ae0e775214e855af98
wabz at pidgin.im
wabz at pidgin.im
Wed Mar 14 03:57:39 EDT 2007
o -----------------------------------------------------------------
| Revision: 757348e257be05fd941d26ae0e775214e855af98
| Ancestor: 1c20061f1779e9e2b50fda49c6951e7ad79589d7
| Author: wabz at pidgin.im
| Date: 2007-03-14T07:56:48
| Branch: im.pidgin.pidgin
|
| Modified files:
| console/libgnt/gntentry.c console/libgnt/gntkeys.c
|
| ChangeLog:
|
| fix extraneous char being added when gntentry's buffer grows
| fix crash when entering wide chars
|
| ============================================================
| --- console/libgnt/gntentry.c d0284745f52f8296ef848751f53489c38be9222c
| +++ console/libgnt/gntentry.c da215b066fc8231fbb0e5bd36ca86a6689d81ea9
| @@ -563,7 +563,7 @@ gnt_entry_key_pressed(GntWidget *widget,
| if (entry->end + len - entry->start >= entry->buffer)
| {
| /* This will cause the buffer to grow */
| - char *tmp = g_strdup_printf("%s%*s", entry->start, len, "");
| + char *tmp = g_strdup(entry->start);
| gnt_entry_set_text_internal(entry, tmp);
| g_free(tmp);
| }
| ============================================================
| --- console/libgnt/gntkeys.c 873063136d49f87602326492a9b5f9281b23c5b1
| +++ console/libgnt/gntkeys.c a7b705a5899d8591003dd89f8d52a20ccc0af5a5
| @@ -121,6 +121,8 @@ int gnt_keys_find_combination(const char
| struct _node *n = &root;
|
| while (*path && n->next[*path] && !(n->flags & IS_END)) {
| + if (g_utf8_find_next_char(path, NULL) - path > 1)
| + return 0;
| n = n->next[*path++];
| depth++;
| }
To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from 757348e257be05fd941d26ae0e775214e855af98
More information about the Commits
mailing list