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 !
SOLVED? V10.50 B3: Undo Script-action not complete
- Rickard Johansson
- Site Admin
- Posts: 6663
- Joined: 19 Jul 2006 14:29
Re: V10.50 B3: Undo Script-action not complete
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
But... Between BeginUndo and EndUndo should it be one single change !? And not > 100
- Rickard Johansson
- Site Admin
- Posts: 6663
- Joined: 19 Jul 2006 14:29
Re: SOLVED? V10.50 B3: Undo Script-action not complete
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...
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
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) !
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) !