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 310990 - does not find the first instance of the search-text if there are more than one instance
does not find the first instance of the search-text if there are more than on...
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Editing
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-07-20 12:44 UTC by C Shilpa
Modified: 2006-02-15 15:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
patch (1.00 KB, patch)
2006-02-10 11:17 UTC, Rohini
accepted-commit_now Details | Review

Description C Shilpa 2005-07-20 12:44:50 UTC
Distribution/Version: SuSE 9.3

1. Open the compose mail window.
2. Type some text in which few sequences of alphabets are repeated. Click on
find in the toolbar.
3. In the find dialog, enter the search-text that has multiple instances. Click
on find.

Actual results:
Starts highlighting the search-text from the second instance onwards.

Expected results:
Should highlight the search-text starting from the first instance.
Comment 1 Subodh Soni 2005-07-29 11:12:40 UTC
Seems to work fine for me in the latest build as of 27th-July 2005
Comment 2 André Klapper 2005-09-27 20:11:36 UTC
i also cannot reproduce this with evo2.4.0/gtkhtml3.8.0, therefore setting to
NEEDINFO, are you still able to reproduce this?
Comment 3 C Shilpa 2005-10-04 07:03:00 UTC
Oops!! there was a mistake in reporting the bug. It does not find the first word
that has been typed in the body of the mail. For eg: if the body is something
like this:
"This bug is related to gtkhtml-finding an instance of a word in the compose
mail window"

And if we try to find the word 'This', it does not. So the first word in the
body of the mail is not found. reopening the bug.
Comment 4 Rohini 2006-02-10 11:17:46 UTC
Created attachment 59062 [details] [review]
patch
Comment 5 Veerapuram Varadhan 2006-02-15 15:04:42 UTC
@comment#3: Actually, it works in the head except, when you have multiple-paragraphs without empty paragraphs, this doesn't work.  For example,

This is a test This is a test <enter>
This is a test This is a test <enter>
This is a test This is a test <enter>
This is a test This is a test <enter>
This is a test This is a test <enter>

If you have composed a message like the above one, the first "This" in the first line will not get searched.
Comment 6 Veerapuram Varadhan 2006-02-15 15:06:33 UTC
@Comment#4: Patch looks good to commit.
Comment 7 Veerapuram Varadhan 2006-02-15 15:36:08 UTC
Fix committed to Head.