--- a/gnttextview.c Thu Oct 08 17:41:41 2009 +0000
+++ b/gnttextview.c Thu Oct 08 18:03:05 2009 +0000
@@ -767,6 +767,7 @@
line->segments = g_list_delete_link(line->segments, segs);
if (line->segments == NULL) {
free_text_line(line, NULL);
if (view->list == iter) {
@@ -780,7 +781,8 @@
seg->end = tag->end - change;
- line->length -= change;
+ line->length -= change; /* XXX: Make things work if the tagged text spans over several lines. */
/* XXX: handle the rest of the conditions */