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

Summary: Text selection is lost after undoing a replace with keyboard
Product: editor Reporter: bobw <bobw>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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 ***