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 187495 - Text selection is lost after undoing a replace with keyboard
Summary: Text selection is lost after undoing a replace with keyboard
Status: RESOLVED DUPLICATE of bug 183695
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-11 20:27 UTC by bobw
Modified: 2010-06-14 06:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bobw 2010-06-11 20:27:11 UTC
Reproduce:

- Select some text.
- Press cmd-R to bring up the Replace dialog.
- Do a search-and-replace that's limited to the selection.
- Close the Replace dialog.
- Undo.

Actual Result:

In most cases, the selection is lost after the undo, though it is retained in some cases (not sure exactly what the criteria are here).

Expected result:

I'd expect the selection to be retained. When this is the case, you can immediately return to the Replace dialog and do a new search-and-replace on the same selection (probably because your first attempt was incorrect, which is why you used the undo command). As is, you must redo the selection.


Product Version: NetBeans IDE Dev (Build 201006050001)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.6.3 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/bob/.netbeans/dev
Comment 1 Vitezslav Stejskal 2010-06-14 06:41:48 UTC

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