summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r--gtk/gtktextbtree.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index b956fb4992..663207e641 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -4488,8 +4488,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
line_ancestor_parent = line->parent->parent;
node = line_ancestor_parent->children.node;
- while (node != line_ancestor &&
- line_ancestor != info->tag_root)
+ while (node != line_ancestor || line_ancestor != info->tag_root)
{
GSList *child_nodes = NULL;
GSList *tmp;
@@ -4497,8 +4496,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
/* Create reverse-order list of nodes before
* line_ancestor
*/
- while (node != line_ancestor
- && node != NULL)
+ while (node != line_ancestor && node != NULL)
{
child_nodes = g_slist_prepend (child_nodes, node);