defano / wyldcard

A clone of Apple's HyperCard and HyperTalk scripting language.
https://github.com/defano/wyldcard/wiki
MIT License
117 stars 12 forks source link

Bug-med-priority: Undo in the script editor clears the whole script #110

Open ooper-zz opened 2 years ago

ooper-zz commented 2 years ago

Open a script select command-z

The content disappears when there is nothing to Undo. It should do nothing. If stuck, try Revert. If Redo doesn't work as expected, please update this issue.

defano commented 2 years ago

What JDK are you using? I am not seeing that behavior using OpenJDK Runtime Environment (Zulu 8.62.0.19-CA-macos-aarch64) (build 1.8.0_332-b09). I'll try some others...

ooper-zz commented 2 years ago

For development I am using jdk1.8.0_74.jdk. For packaging (WyldCard.app), I am using openjdk-17.jdk. Just tested it on both. It's happening when you Undo WITHOUT making changes. I can't seem to be able to duplicate the Redo behavior described above now. I will keep an eye as I didn't capture the stack I was working on. Additionally, I changed the description to reflect what I can reproduce.