# HG changeset patch # User Sadrul Habib Chowdhury # Date 1157092726 0 # Node ID 2377498b4698a6876fac5819755baf682072cc07 # Parent 70f52ff1caec4dde39439fd92c420ced8f40bb48 [gaim-migrate @ 17106] wabz keeps finding bugs i left in the codes. committer: Tailor Script diff -r 70f52ff1caec -r 2377498b4698 console/libgnt/gnttextview.c --- 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 + 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; } }