[Lazarus] editor bug?

duilio foschi octopushole at gmail.com
Mon Mar 15 19:01:10 CET 2021


Hi Martin,

somebody fixed the bug.

You will find a zip file at this link:
https://mega.nz/file/T85iARDY#kK9i6JbM-aDJfRafL5PMN2MenSfxJoK4Yg9tnVwGsTo

The zip file contains:

1. the corrected synedit.pp for Lazarus stable v. 2.0.12
2. the corrected synedit.pp for Lazarus trunk v. 2.1.0
3. the diff file for #1
4. the diff file for #2

I am not accustomed to version control software.

Please feel free to use the attached fix in the way you like

Thank you

Duilio
.

On Sat, Feb 20, 2021 at 2:51 PM Martin Frb via lazarus <
lazarus at lists.lazarus-ide.org> wrote:

> On 20/02/2021 10:58, duilio foschi via lazarus wrote:
> > I am using Lazarus v. 2.0.6 r. 62129 on windows 7/64 bits.
> >
> > I found an unexpected behaviours of the editor
> >
> > 1. I want to delete the text ":string" from the encircled column-sized
> > frame
> > you see here:
> >
> > https://i.ibb.co/V9ZPzSf/1.jpg <https://i.ibb.co/V9ZPzSf/1.jpg>
> >
> > The frame was selected using shift+alt+arrows keys.
> >
> > 2. when I click the ReplaceAll button also the text from the encircled
> > button
> > here
> >
> > https://i.ibb.co/dpFsjNq/2.jpg <https://i.ibb.co/dpFsjNq/2.jpg>
> >
> > is deleted, what is unexpected.
> >
> > Isnt this a bug?
> >
> Yes it is.
>
> This is not currently implemented, so the Search/Replace should not
> allow "in selection"
>
> You can report it (the unimplemented fearture) as a bug. But it will be
> rather some time until that might get implemented (unless someone
> contributes).
>
> ----------------
> There are some other options to archive what you need.
>
> Multi caret mode: (you can in Keymap config a key to have all carets
> kept, when moving them in any direction)
> https://wiki.lazarus.freepascal.org/New_IDE_features_since#Multi_Caret
>
> Maybe
> https://wiki.lazarus.freepascal.org/New_IDE_features_since#Syncron-Edit
>
> And Editor Macros
> record actions for one line, end with positioning one line down => then
> play macro repeatedly.
> --
> _______________________________________________
> lazarus mailing list
> lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210315/2797f747/attachment.html>


More information about the lazarus mailing list