Page 1 of 1

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

Posted: 15 Jul 2015 08:57
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 !

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

Posted: 15 Jul 2015 13:09
by Rickard Johansson
You should change the size of the undo buffer in settings. It is probably set to 100.

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

Posted: 16 Jul 2015 08:33
by micha_he
But... Between BeginUndo and EndUndo should it be one single change !? And not > 100 :?:

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

Posted: 16 Jul 2015 13:43
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...

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

Posted: 21 Jul 2015 10:22
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) !