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 256609

Summary: [regression] Pressing enter after a commented line places the cursor at the 0 marker
Product: java Reporter: brettryan <brettryan>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description brettryan 2015-11-15 21:52:10 UTC
Steps to reproduce
------------------
1. Enter the following text (note, leading spaces are included).

    String test;
    test = "abc";

2. Place the cursor at the end of the second line and invoke "Comment" (CMD+/)
3. Press [enter]

Expected outcome
----------------
The second line should commented, when pressing the enter key the insertion caret should be in line with the first line even though the comments start at the files gutter.

Actual outcome
--------------
Line comments as norman, however the insertion caret is being placed at the files gutter. This is a regression from prior behaviour as it reduces functionality by now needing the author to press tab the amount of indenting times which was not required in 8.0.2.