]> Pileus Git - ~andy/gtk/commitdiff
Fix backward search bug exposed by the unit test
authorPaolo Borelli <pborelli@gnome.org>
Sun, 31 Oct 2010 12:52:06 +0000 (13:52 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Mon, 1 Nov 2010 14:21:43 +0000 (15:21 +0100)
When searching with multiple lines first_line_start/end were initialized
to the last line start/end iters

gtk/gtktextiter.c

index 13a4e370b7aa39b878f4f56a7b184deeca5eb59a..380778f90c8e4e483541e14b510b8dac58e9afb4 100644 (file)
@@ -4803,6 +4803,8 @@ lines_window_init (LinesWindow       *win,
         }
 
       win->lines[i] = line_text;
+      win->first_line_start = line_start;
+      win->first_line_end = line_end;
 
       line_end = line_start;
       gtk_text_iter_backward_line (&line_start);