Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319598 - Automatic closing of brackets selects wrong opening bracket inside code assist inserted parameter
Summary: Automatic closing of brackets selects wrong opening bracket inside code assis...
Status: CLOSED DUPLICATE of bug 326868
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 11:51 EDT by Felix Saphir CLA
Modified: 2020-05-14 11:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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