Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319598

Summary: Automatic closing of brackets selects wrong opening bracket inside code assist inserted parameter
Product: z_Archived Reporter: Felix Saphir <felix.saphir>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED DUPLICATE QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3 CC: kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Felix Saphir CLA 2010-07-12 11:51:21 EDT
Build Identifier: 20100618-0524

Typing a ')' inside a parameter placeholder, that was previously inserted by code assist seems to ignore opening brackets in the string I'm typing as parameter.

For example, I type
  $var = new Zend_Db_Exp
and select to suggested autocompletion to
  $var = new Zend_Db_Expr($expression)
with $expression begin highlighted.

Pressing ' gives:
  $var = new Zend_Db_Expr('')
and I can enter an expression:
  $var = new Zend_Db_Expr('NOW(')

Typing the closing ')' makes the cursor skip ahead to the end of the line.

Expected result:
  $var = new Zend_Db_Expr('NOW()|')

where '|' marks the expected cursor position.

What severity is given to a small nuisance like this? Leaving "Normal"

Reproducible: Always

Steps to Reproduce:
see details
Comment 1 Zhongwei Zhao CLA 2010-11-05 01:58:17 EDT
duplicate of bug 326868

*** This bug has been marked as a duplicate of bug 326868 ***
Comment 2 Kalin CLA 2011-07-22 08:17:37 EDT
I'm closing this issue as duplicate of bug 326868