1whatleytay / saturn

A modern MIPS interpreter and assembler.
MIT License
29 stars 6 forks source link

Undo performing wrong change #11

Closed AlekseyPanas closed 1 year ago

AlekseyPanas commented 1 year ago

This is a very obscure bug. I've been working for many hours over the course of multiple days without restarting the program.

I pressed undo and for some reason it removed some earlier change instead a recent one. This has never happened before and restarting the program fixed the issue.

I don't have a consistent replication procedure, but maybe the data structure that you use to store the sequence of changes filled up (if thats even possible)?

1whatleytay commented 1 year ago

Nice catch! There is incorrect behaviour when the undo queue overflows (seems like I was writing the undo feature way too late at night). I've also extended the undo queue from 50 operations to 100 operations. Pushed a fix in 0.1.6.

1whatleytay commented 1 year ago

Should be resolved in 0.1.6. Re-open if something goes wrong!