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 234188 - PHP editor - escaped quote deletion bug
Summary: PHP editor - escaped quote deletion bug
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC All
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-09 13:40 UTC by unai
Modified: 2013-08-12 12:17 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 unai 2013-08-09 13:40:49 UTC
[ JDK VERSION : 1.7.0_21 ]

When deleting an escaped quote in the end of a string, also the string-
delimiting quote gets delete, and there's no case where the user would 
want that.

How to reproduce:

Have the following string someplace in your code (pipe being the cursor)

"blahblah\"|"

where obviously the first and last quotes enclose the string and the 
quote in the middle is an escaped quote character, part of the string itself.
If you hit backspace, *BOTH* the quote before and after the cursor get 
deleted, and you don't really want that to happen, very annoying.
You end up with
"blahblah\|
instead of
"blahblah\|"
Comment 1 Ondrej Brejla 2013-08-09 14:58:50 UTC
Fixed in web-main #a306f491e9de

Now it deletes just affected quote and its escaping backslash.
Comment 2 Quality Engineering 2013-08-10 02:05:05 UTC
Integrated into 'main-silver', will be available in build *201308092300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a306f491e9de
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #234188 - PHP editor - escaped quote deletion bug
Comment 3 mmolda 2013-08-12 12:17:42 UTC
Verified, thanks.

Product Version: NetBeans IDE Dev (Build 201308112300)
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b36
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)