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 133466

Summary: Undo to last saved state does not clear the modified flag.
Product: editor Reporter: matthies <matthies>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description matthies 2008-04-21 14:14:18 UTC
Example:
1) Open a file.
2) Optionally: Make some edits and save it.
3) Do some editing so that the "*" marker appears in the editor window title.
4) Undo the edits up to the last saved state.
-> The "*" marker is still there, and attempting to close the window triggers a "Save it?" dialog.

I believe this is a regression.

One situation where this behavior is relevant is in the context of version control, where saving would mark the file as 
modified for version control. Having to "Discard" the non-changes is rather unfortunate as well.

Product Version: NetBeans IDE 6.1 RC1 (Build 200804100130)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\nm\.netbeans\6.1rc1
Comment 1 Jiri Prox 2008-04-22 07:36:59 UTC
Duplicate of issue 132590. Thanks for your report anyway.

*** This issue has been marked as a duplicate of 132590 ***