Don't die on empty matches

master
Yevgen Muntyan 2005-11-11 20:10:47 +00:00
parent 3d2f1d7598
commit a9af6f4e86
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ static gboolean moo_text_match_regex_forward (const GtkTextIter *start,
}
g_free (text);
g_assert (gtk_text_iter_compare (match_start, match_end) == -1);
g_assert (gtk_text_iter_compare (match_start, match_end) <= 0);
return TRUE;
}
@ -439,7 +439,7 @@ static gboolean moo_text_match_regex_backward (const GtkTextIter *start,
}
g_free (text);
g_assert (gtk_text_iter_compare (match_start, match_end) == 1);
g_assert (gtk_text_iter_compare (match_start, match_end) >= 0);
return TRUE;
}