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 247253 - Extra closing brackets on replace
Summary: Extra closing brackets on replace
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-18 07:33 UTC by unti1x
Modified: 2016-06-10 10:33 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 unti1x 2014-09-18 07:33:42 UTC
If select any valid pair of brackets, e.g. [], () or {}, and type another one, they'll be replaced properly but extra closing bracket will be inserted after opening one.

Example.
Having:

$f('a', 1, false)

After replace:

$f[]'a', 1, false]

But sequence $f(1, 'a', false) works ok.

This action adds 2 lines in history: for replace and for extra closing bracket.
Comment 1 Tomas Mysik 2016-06-10 10:33:41 UTC
(In reply to unti1x from comment #0)
> After replace:
> 
> $f[]'a', 1, false]

What are the exact steps, please? Any text selected? Or how exactly do you replace the bracket?

Simply reopen this issue, thanks.