This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 104520 - "Search Backwards" + Selection + "Replace All" reports no match
Summary: "Search Backwards" + Selection + "Replace All" reports no match
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords:
: 157905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-22 15:57 UTC by dmiller
Modified: 2009-04-20 08:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch (1.62 KB, text/plain)
2009-04-17 14:12 UTC, Alexey Butenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmiller 2007-05-22 15:57:56 UTC
Select a region of text
Select Edit->Replace
Enter text for "Find What"
Enter text for "Replace With"
Check "Search Backwards"

Clicking "Find" will cycle through the matches within the selected region.
Clicking "Replace All" will report: 'yoursearchtext' not found
Clicking "Replace" works as expected (replace current and find previous)

Note: This only happens when replacing withing a selected region.

The annoying bit of this bug is that if you did a backwards search it remembers
the state of the "Backwards Search" checkbox.

Then later when you attemps a replace it's not immediately obvious what is
wrong.  Since you didn't explicitly ask it to search backwards.
Comment 1 Vitezslav Stejskal 2007-05-24 06:02:41 UTC
Reproducible in a dev build.
Comment 2 Jiri Prox 2008-04-11 00:42:38 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 Petr Dvorak 2009-02-04 12:27:40 UTC
*** Issue 157905 has been marked as a duplicate of this issue. ***
Comment 4 Alexei Mokeev 2009-04-10 11:39:17 UTC
Reproduced. 6.7 trunk (20090408)
Comment 5 Alexey Butenko 2009-04-17 14:12:55 UTC
Created attachment 80353 [details]
Patch
Comment 6 Alexey Butenko 2009-04-17 14:15:14 UTC
Patch will be pushed on 04/20
Comment 7 Alexey Butenko 2009-04-20 08:23:55 UTC
changeset bf75b88e0463