GNOME Bugzilla – Bug 310990
does not find the first instance of the search-text if there are more than one instance
Last modified: 2006-02-15 15:36:08 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.
Seems to work fine for me in the latest build as of 27th-July 2005
i also cannot reproduce this with evo2.4.0/gtkhtml3.8.0, therefore setting to NEEDINFO, are you still able to reproduce this?
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.
Created attachment 59062 [details] [review] patch
@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#4: Patch looks good to commit.
Fix committed to Head.