[Lazarus] ctrl+j rename possible bug
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Dec 9 23:04:09 CET 2009
On Wed, 9 Dec 2009 22:25:55 +0200
ik <idokan at gmail.com> wrote:
> Hello,
>
> I'm using Lazarus 0.9.29 r23051M FPC 2.5.1 x86_64-linux-gtk 2 (beta) .
>
> I selected a whole procedure and used CTRL+J to rename a local variable and
> it's whole usage in the code like so:
>
> procedure a_test;
> var
> SelStart : integer;
> begin
> SelStart := Edit1.SelStart;
> ...
> end;
>
> When I renamed SelStart to OldStart, it also renamed the Edit1.SelStart .
> The expected result is not to touch the property itself.
Selection+Ctrl+J is syncron edit. It replaces word occurences in
selection.
To rename a variable use Ctrl+Shift+E.
> Can it be configured somehow, or should I report it as a bug ?
It is by design.
Mattias
More information about the Lazarus
mailing list