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 68575 - "Reformat code" on selection goes beyond the end of selection
Summary: "Reformat code" on selection goes beyond the end of selection
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 22:08 UTC by _ ttran
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

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 _ ttran 2005-11-11 22:08:19 UTC
[today's CVS trunk build]

* have some *.java source open
* insert some spaces at the beginning of a few lines (to spoil the formatting)
* select a few lines
* right click on the selection, choose Reformat code

The editor reformats the selected code but it doesn't stop at the end of the
selection but goes on to the beginning of the next guarded block
Comment 1 _ ttran 2005-11-12 16:14:54 UTC
fixed in trunk 

IDE:-------------------------------------------------
IDE: [11/12/05 5:13 PM] Committing "ActionFactory.java" started
Checking in ActionFactory.java;
/cvs/editor/libsrc/org/netbeans/editor/ActionFactory.java,v  <--  ActionFactory.java
new revision: 1.72; previous revision: 1.71
done
IDE: [11/12/05 5:13 PM] Committing "ActionFactory.java" finished
Comment 2 Miloslav Metelka 2005-11-14 13:39:44 UTC
Trung, thanks for fixing this.