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 269794 - close brackets and comment
Summary: close brackets and comment
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P4 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-10 13:37 UTC by userM
Modified: 2017-02-14 09:49 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 userM 2017-02-10 13:37:53 UTC
Product Version = NetBeans IDE Dev (Build 201701240001)
Operating System = Linux version 4.4.0-31-lowlatency running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

STEPS:
  * write a new function
void a() {
 if (1)
 {
    a()
 } // b
 //
}
  * Click on squared minus "[-]" to close the if's brackets
  * Click on squared minus "[-]" to close the comment
  * Click on squared minus "[+]" to opent the comment

ACTUAL:
  We can not reopen the if's brackets.
  Workaround: to move in a new line the comment "// b"
Comment 1 ilia 2017-02-14 09:49:33 UTC
Hi,

It's a tricky situation when there is a collapsed and expanded block are on the same line.
In that case there is only [-] button on glyph, that's correct.

To open the collapsed comment just double click it in editor.