After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 75859 - Problem in highlighting the contents while using "find"
Problem in highlighting the contents while using "find"
Status: RESOLVED DUPLICATE of bug 90435
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.0.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 81685 91012 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-03-22 06:53 UTC by Jathish
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Jathish 2002-03-22 06:53:14 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.
Comment 1 Paolo Maggi 2002-03-22 10:54:44 UTC
I think this is a GtkTextView problem.
I have to check it more deeply
Comment 2 Luis Villa 2002-03-28 05:36:43 UTC
Fairly minor, but irritating.
Comment 3 Paolo Maggi 2002-04-03 15:14:07 UTC
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);
|  }
|
			
+--------
Comment 4 Havoc Pennington 2002-04-29 20:08:32 UTC
A small test case would make it a lot easier to fix this one.
Comment 5 Chema Celorio 2002-05-14 14:25:55 UTC
Here you have a test case:
http://bugzilla.gnome.org/show_bug.cgi?id=81685
Comment 6 Chema Celorio 2002-05-14 14:26:07 UTC
*** Bug 81685 has been marked as a duplicate of this bug. ***
Comment 7 Paolo Maggi 2002-05-14 14:45:58 UTC
I can also reproduce it in gnome-dictionary.
For example, look up 'Test' (on all databases) and then search for "W
Comment 8 Paolo Maggi 2002-08-17 10:51:25 UTC
*** Bug 91012 has been marked as a duplicate of this bug. ***
Comment 9 Matthias Clasen 2002-12-26 00:19:32 UTC

*** This bug has been marked as a duplicate of 90435 ***