GNOME Bugzilla – Bug 75859
Problem in highlighting the contents while using "find"
Last modified: 2011-02-04 16:11:56 UTC
Gnome Beta 2 was built on a Solaris 8 (32 bit) sun sparc machine. Description : when the first word/character of a line is selected and the previous line is a blank line then the blank line is also selected. Steps to reproduce: 1. Click on "Applications-> Accessories -> Text Editor" to invoke gedit 2. enter some lines of text with blank lines in between. 3. Use the option "Search:Find" and enter a word or character that appears at the beginning of a line which follows a blank line 4. The search highlights even the blank line with the word/character searched.
I think this is a GtkTextView problem. I have to check it more deeply
Fairly minor, but irritating.
I've investigated it a bit and I think it is a gtk+ problem. The code I use here is: +----- | | found = gedit_text_iter_forward_search (&iter, str, search_flags, | &match_start, | &match_end, | NULL); | | if (found) | { | gtk_text_buffer_place_cursor (GTK_TEXT_BUFFER (doc), | &match_start); | | gtk_text_buffer_move_mark_by_name (GTK_TEXT_BUFFER (doc), | "selection_bound", | &match_end); | } | +--------
A small test case would make it a lot easier to fix this one.
Here you have a test case: http://bugzilla.gnome.org/show_bug.cgi?id=81685
*** Bug 81685 has been marked as a duplicate of this bug. ***
I can also reproduce it in gnome-dictionary. For example, look up 'Test' (on all databases) and then search for "W
*** Bug 91012 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 90435 ***