SOLVED? V10.50 B3: Undo Script-action not complete

Post bug reports when testing beta versions here.
Post Reply
User avatar
micha_he
Posts: 570
Joined: 24 Jul 2011 12:16
Location: Helmstedt, NDS, Germany

SOLVED? V10.50 B3: Undo Script-action not complete

Post by micha_he »

With a script (look third script is this post) i delete all until the rest of nearly 10 lines from 1100 lines in one step.

With 'Edit -> Undo' (same in 'Edit -> Undo/Redo History...') there only ~100 are restored. The rest is missing !
User avatar
Rickard Johansson
Site Admin
Posts: 6627
Joined: 19 Jul 2006 14:29

Re: V10.50 B3: Undo Script-action not complete

Post by Rickard Johansson »

You should change the size of the undo buffer in settings. It is probably set to 100.
User avatar
micha_he
Posts: 570
Joined: 24 Jul 2011 12:16
Location: Helmstedt, NDS, Germany

Re: SOLVED? V10.50 B3: Undo Script-action not complete

Post by micha_he »

But... Between BeginUndo and EndUndo should it be one single change !? And not > 100 :?:
User avatar
Rickard Johansson
Site Admin
Posts: 6627
Joined: 19 Jul 2006 14:29

Re: SOLVED? V10.50 B3: Undo Script-action not complete

Post by Rickard Johansson »

If a script make 10 000 changes in a document - it will create 10 000 undo actions that is stored in memory. I've made a temporary fix that will increase the undo list limit, when running a script.

Adding those 10 000 undo actions as one item to the list would probably be more elegant. And maybe it should be done that way in a later version...
User avatar
micha_he
Posts: 570
Joined: 24 Jul 2011 12:16
Location: Helmstedt, NDS, Germany

Re: SOLVED? V10.50 B3: Undo Script-action not complete

Post by micha_he »

The temporary fix in V10.50 stable isn't the best solution !

While the script and undo now works, the 1000 Delete.Line-commands need < 1s and the undo of the same actions need ~5s !
Possibly the updating of the RJTED-window is the problem (the slider is flicker while undo) !
Post Reply