Commit 20b58d2e authored by Sebastien Granjoux's avatar Sebastien Granjoux

#576959 - Search does not point to correct line number on first match when

	* 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.

svn path=/trunk/; revision=4904
parent 42f13851
2009-03-28 Iasen Karakashev <ikarakashev@yahoo.com>
reviewed by: Sébastien Granjoux <seb.sfo@free.fr>
* 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.
2009-03-28 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/macro/macro-util.c:
......@@ -247,6 +247,7 @@ file_buffer_line_from_pos(FileBuffer *fb, gint pos)
}
}
fb->lines = g_list_reverse(fb->lines);
lineno = -1;
}
for (tmp = fb->lines; tmp; tmp = g_list_next(tmp))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment