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 136306

Summary: red box appears around method parameter
Product: editor Reporter: zx5000 <zx5000>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: blocker CC: mpetras
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description zx5000 2008-06-02 18:08:46 UTC
Please add a configuration option to control the auto-completion red box that appears around suggested method parameters
when typing. This sometimes causes the cursor to be in the wrong place after enter is pressed. Red box would appear
around the "-" in the example below.

if(foo.contains("-")
{

})
Comment 1 Petr Dvorak 2008-06-02 19:01:45 UTC
Following discussion on nbusers, I agree with this issue. I think that if you press Enter when the caret is outside the
red outline, it should behave differently than if you press Enter inside of the outline... I don't know if a
configuration option is the solution, I would just distinguish between those two situations...
Comment 2 Vitezslav Stejskal 2008-06-07 11:02:29 UTC
Agreed, I've already discussed this with somebody the other day. The ENTER behavior should be exactly as you say. I'm
marking this as a P3 defect.
Comment 3 Dusan Balek 2008-06-09 09:50:17 UTC
Fixed. ENTER behavior changed as requested.

changeset 1021213ce539 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=1021213ce539