Revert "Fix an off-by-one error in textview's quote unfolding."
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 29 Mar 2017 23:56:48 +0000 (01:56 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 29 Mar 2017 23:56:48 +0000 (01:56 +0200)
This reverts commit 8819febec59e3d5421b0cd4d7882d6524c375bcf.
I refuse to be driven to madness by our textview's colorization.

src/textview.c

index 1ecaebc..7372a1c 100644 (file)
@@ -2706,7 +2706,7 @@ static void textview_toggle_quote(TextView *textview, GSList *start_list, Clicka
                gtk_text_buffer_get_iter_at_offset(buffer, &start, uri->start);
                gtk_text_buffer_insert_with_tags_by_name
                                (buffer, &start, (gchar *)uri->data, 
-                                uri->data_len,
+                                strlen((gchar *)uri->data)-1,
                                 "qlink", (gchar *)uri->fg_color, NULL);
                uri->end = gtk_text_iter_get_offset(&start);
                textview_make_clickable_parts_later(textview,