Opened 10 years ago

Closed 10 years ago

#586 closed defect (fixed)

Lexical variable replace doesn't work if you have the original declaration selected

Reported by: adamk Owned by: azawawi
Priority: major Milestone:
Component: editor Version: 0.46
Keywords: Cc:


The Lexical variable replace works fine if you have any usage of the variable selected, EXCEPT the original declaration.

Replacing at the following location works.

my $foo = 1;

$fo<HERE>o = 2;

Replacing at the following location fails.

my $fo<HERE>o = 1;

$foo = 2;

This is counter to typical expectations of the function of this kind of feature.

Change History (2)

comment:1 Changed 10 years ago by azawawi

  • Owner set to azawawi
  • Status changed from new to assigned

comment:2 Changed 10 years ago by azawawi

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r8115.

To test it, Please run 'cpan .' or 'sudo cpan .' in padre_trunk/PPIx-EditorTools?

Have a nice day :)

Note: See TracTickets for help on using tickets.