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 141872 - Rename: Parameter selection includes too much
Summary: Rename: Parameter selection includes too much
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 13:33 UTC by eskild
Modified: 2008-09-29 21:38 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 eskild 2008-07-28 13:33:20 UTC
(The issue is apparently not tied to Rename; that's just where it's bitten me first.)

If I have a function like this, where I want to rename the last argument:

  def foo(a, b=2.71, c = 42)
    puts a, b, c
  end

then when I select "c" in the "puts" statement, the editor highlights "c" and "= 42" as well. So, when I press Ctrl-R to
rename, I lose the default value.
Comment 1 Torbjorn Norbye 2008-09-29 21:38:44 UTC
Fixed by changeset c9e9bbbf7f0c