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 118645 - expand-selection includes closing paren after [], ()
Summary: expand-selection includes closing paren after [], ()
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-12 01:44 UTC by jamespb
Modified: 2011-01-28 20:11 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 jamespb 2007-10-12 01:44:58 UTC
given a single line containing:

(foo[:x])

put the cursor between ] and ), hit alt-shift-.

the selection is [:x]) - I think it should be [:x] (or foo[:x]) without including the closing paren.

given:

foo(bar)

put the cursor at the end of the line; the selection is bar) - seems like it should either be bar or (bar).  (I think
selecting bar would be more useful, but probably inconsistent; if it's bar and I wanted (bar), it's trivial to hit
alt-shift-. again).
Comment 1 Torbjorn Norbye 2007-11-02 22:07:27 UTC
The node offset are still wrong in the AST in JRuby 1.0.2. Will file a tracking bug for this in the JRuby issue tracker.
Comment 2 Erno Mononen 2009-10-07 13:33:50 UTC
The latter case is fixed now, the former is still valid.