diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 9c3c3390c7..1269256256 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -3342,6 +3342,8 @@ ensure_end_iter_line (GtkTextBTree *tree) { if (tree->end_iter_line_stamp != tree->chars_changed_stamp) { + gint real_line; + /* n_lines is without the magic line at the end */ g_assert (_gtk_text_btree_line_count (tree) >= 1);