05-11-2024, 12:36 AM
(05-11-2024, 12:15 AM)TerryRitchie Wrote:The main problem here is that the way we do things, we never actually run out of undos.(05-11-2024, 12:09 AM)PhilOfPerth Wrote: While the Undo is extremely useful for recovering from a faux-pas (and that's quite frequent for me), there doesn't seem to beFor now you could increase the history buffer to 2000MB (2GB) so you'll probably never reach the limit.
an indication when you've used up all your Undo's. When this involved back-tracking over a number of changes, you may reach
the limit, and no changes are made. This can be hard to see with a long programme, as changes may not be obvious in the IDE.
Is there, or can there be, a "Limit of Undo" message?
Options menu -> Backup/Undo...
I use a paint program that describes what you want. When I reach the limit of the buffer it pops up a message stating that no further undo actions can be recorded.
For a quick example of how we tend to do things, it's basically like this:
Code: (Select All)
Do
a$ = Input$(1)
l$ = Right$(l$ + a$, 10)
Cls
Print l$
Loop Until a$ = Chr$(13)
Start typing. 1234567890 <-- up until this point, you can back up one character at a time and undo your typing.
Type some more. ABCD <-- now your string looks like "567890ABCD"... you can now back up one character at a time, and undo the last 10 things you typed.
At no point do you actually run out of undos, as they tend to overwrite the older undos.
And as for how many undos you have??
That's all depends on how large your program is, and how much information you added in any particular change, and how large the limit is.
In other words, it's hard to say.
Did you type "PRINT" as the last change, or did you CTRL-V and paste in 1000 lines of code?? The size of those changes are going to be variable, depending on your actions, so it's hard to say, "OH! This one is the one that broke the camel's back!"