Page 1 of 1

Undo

Posted: Sun Feb 09, 2025 2:21 pm
by Flinx
I occasionally had problems with the undo function that I have not been able to reproduce so far. Since I have now realized that it has to do with the automatic indentation, I now have an example.

Copy this in the IDE editor:

Code: Select all

For i=1 To 100
	DebugPrint(i)
Next
Change the DebugPrint(i) to DebugPrint(k):

Code: Select all

For i=1 To 100
	DebugPrint(k)
Next
Put the cursor right in front of the D of DebugPrint and press Backspace twice.

Code: Select all

For i=1 To 100DebugPrint(k)
Next
Press Enter

Code: Select all

For i=1 To 100
	DebugPrint(k)
Next
Now try using the Undo function to change the k back to an i. The result is

Code: Select all

For i=1 To 100
		DebugPrintik)
Next

Re: Undo

Posted: Tue Feb 25, 2025 10:44 pm
by airsoftsoftwair
Thanks, will be fixed!

Re: Undo

Posted: Sun Jun 22, 2025 5:27 pm
by airsoftsoftwair

Code: Select all

- Fix [IDE]: Auto indentation could mess up the undo buffer