mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
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:
parent
a2360f979a
commit
3511215730
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user