Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-03

JEDI format and UNDO

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Zaher Dirkey
Zaher Dirkey wrote 5 lines
Hi, Ctrl+D make format for my code. But when make Ctrl+Z it make strange undo, it is undo line by line that can make the code corrupted.

Yes, I've spotted it too... very unpleasant. It should do just one undo like it was before ... Martin ?

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120306/8ff5dfbc/attachment.html>

Reply by email

Paul Ishenin
to zeljko

06.03.12 20:58, zeljko ?????:

Yes, I've spotted it too... very unpleasant. It should do just one undo like it was before ... Martin ?

That's was my change. JCF now replaces only changed strings, not the whole text.

I will look what can be done to merge undo items into a group.

Best regards,
Paul Ishenin

Reply by email

Martin
to Paul Ishenin
Paul Ishenin wrote 8 lines
06.03.12 20:58, zeljko ?????: > Yes, I've spotted it too... very unpleasant. It should do just one undo > like it was before ... Martin ? That's was my change. JCF now replaces only changed strings, not the whole text. I will look what can be done to merge undo items into a group.

call
SynEdit.BeginUndoGroup
SynEdit.EndUndoGroup

Reply by email

Zaher Dirkey
to Paul Ishenin
Paul Ishenin wrote 10 lines
06.03.2012 20:32, Zaher Dirkey ?????: Hi, > Ctrl+D make format for my code. > > But when make Ctrl+Z it make strange undo, it is undo line by line that > can make the code corrupted. >

Yes it is work, thanks, but i see the scrollbar on the left move from top to down need about 3 seconds to finish the file (over 1000 line).

Is there an option to show message to confirm when accidentally Ctrl+D pressed?

I am using last reversion of Lazarus, FPC 2.6 Windows XP

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120307/9a7e218f/attachment.html>

Reply by email

Martin
to Zaher Dirkey
Zaher Dirkey wrote 22 lines
On Wed, Mar 7, 2012 at 4:52 AM, Paul Ishenin < <mailto:>> wrote: 06.03.2012 20:32, Zaher Dirkey ?????: Hi, Ctrl+D make format for my code. But when make Ctrl+Z it make strange undo, it is undo line by line that can make the code corrupted. Yes it is work, thanks, but i see the scrollbar on the left move from top to down need about 3 seconds to finish the file (over 1000 line). Is there an option to show message to confirm when accidentally Ctrl+D pressed? I am using last reversion of Lazarus, FPC 2.6 Windows XP

try 35809, I added missing Begin/EndUpdate calls
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120307/aae4d55e/attachment-0001.html>

Reply by email