Bug 285821 - [find/replace] 'Replace All' does not replace all
Summary: [find/replace] 'Replace All' does not replace all
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.6 M2   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 04:15 EDT by Sjoerd CLA
Modified: 2009-09-15 02:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sjoerd CLA 2009-08-06 04:15:29 EDT
Build ID: 20090611-1022

Steps To Reproduce:
From bug 48463: "There seems to be some 'cursor location' within the selection, which is moved
to one of the replacement positions, then the Replace All is only partial and
your code is broken."

In a file with a lot of "foo" strings, do the following:
1. Open the Find/Replace dialog
2. Enter Find: "foo", Replace with: "bar"
3. Press Find a couple of times
4. Press Replace All.
Expected result: all foos have been replaced by bars, as the name "Replace All" implies.
Actual result: Only the foos that appear after the cursor are replaced by bars.
Workaround: enable Wrap Search.
Related: Bug 45658

More information:
Comment 1 Dani Megert CLA 2009-08-06 06:49:42 EDT
Fixed in HEAD.
Available in M2 builds >= N20090807-2000.
Comment 2 Raksha Vasisht CLA 2009-09-15 02:41:03 EDT
Verified for 3.6 M2 with I20090914-1800.