anjuta r4905 - in branches/gnome-2-26: . plugins/search



Author: sgranjoux
Date: Sat Mar 28 20:59:07 2009
New Revision: 4905
URL: http://svn.gnome.org/viewvc/anjuta?rev=4905&view=rev

Log:
	* plugins/search/search-replace_backend.c
	(file_buffer_line_from_pos):
	#576959 - Search does not point to correct line number on first match
	when file is not opened in editor.


Modified:
   branches/gnome-2-26/ChangeLog
   branches/gnome-2-26/plugins/search/search-replace_backend.c

Modified: branches/gnome-2-26/plugins/search/search-replace_backend.c
==============================================================================
--- branches/gnome-2-26/plugins/search/search-replace_backend.c	(original)
+++ branches/gnome-2-26/plugins/search/search-replace_backend.c	Sat Mar 28 20:59:07 2009
@@ -247,6 +247,7 @@
 				}
 			}
 			fb->lines = g_list_reverse(fb->lines);
+			lineno = -1;
 		}
 		
 		for (tmp = fb->lines; tmp; tmp = g_list_next(tmp))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]