Mercurial > pidgin.yaz
changeset 14398:2377498b4698
[gaim-migrate @ 17106]
wabz keeps finding bugs i left in the codes.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 01 Sep 2006 06:38:46 +0000 |
parents | 70f52ff1caec |
children | 28baa42b5ac2 |
files | console/libgnt/gnttextview.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gnttextview.c Fri Sep 01 02:44:46 2006 +0000 +++ b/console/libgnt/gnttextview.c Fri Sep 01 06:38:46 2006 +0000 @@ -1,6 +1,8 @@ #include "gnttextview.h" #include "gntutils.h" +#include <string.h> + enum { SIGS = 1, @@ -320,14 +322,15 @@ end++; start = end; gnt_text_view_next_line(view); + view->list = g_list_first(view->list); continue; } line = view->list->data; if ((end = strchr(start, '\n')) != NULL || (end = strchr(start, '\r')) != NULL) { - int l = gnt_util_onscreen_width(start, end - 1); - if (l >= widget->priv.width - line->length - 1) { + len = gnt_util_onscreen_width(start, end - 1); + if (len >= widget->priv.width - line->length - 1) { end = NULL; } }