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 - [regression] Pressing enter after a commented line places the cursor at the 0 marker
Summary: [regression] Pressing enter after a commented line places the cursor at the 0...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-15 21:52 UTC by brettryan
Modified: 2015-11-15 21:52 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 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.