Fix backward search bug exposed by the unit test

When searching with multiple lines first_line_start/end were initialized
to the last line start/end iters
This commit is contained in:
Paolo Borelli 2010-10-31 13:52:06 +01:00 committed by Tristan Van Berkom
parent a2360f979a
commit 3511215730

View File

@ -4803,6 +4803,8 @@ lines_window_init (LinesWindow *win,
} }
win->lines[i] = line_text; win->lines[i] = line_text;
win->first_line_start = line_start;
win->first_line_end = line_end;
line_end = line_start; line_end = line_start;
gtk_text_iter_backward_line (&line_start); gtk_text_iter_backward_line (&line_start);