IDE undo/redo scrambles code

Post bugs related to the IDE here
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

IDE undo/redo scrambles code

Post by #NULL »

Ubuntu 18, pb570b2 x64

I often had the IDE scrambling my code when using undo/redo and I seem to be able to reproduce this now with some project:

http://www.wannabephoenix.de/PB2/test.zip

- download, unzip, open file '3d_iso_experiment.pbp'
- activate tab 'main.pb'
- go to line 604, select 'update', press 'r' and select '#previous_reset' from autocompletion popup
- do the same on line 607
- press f5 to compile/run (program will exit immediately because there is an End somewhere else)
- now press cntrl+z (undo) a couple of times, sometimes the editor will jump to the top of the file while doing this
- now try to redo by pressing cntrl+y, only one step will be available, showing '#previous_' and you can undo/redo only between these two steps.

Most of the times when this happens it's much worse, with scrambled text, joined or missing lines or text inserted that did not come from context or clipboard.