atom-parinfer
atom-parinfer copied to clipboard
Undo often doesn't restore code to original state
I can produce an example later, but I often have to fix my code after going back too far in the undo stack.
Were you able to produce an example of this?
With | as cursor:
(foo|) bar
Insert [
(foo[| bar])
After pressing undo...
❌ Actual
(foo| bar)
✔️ Expected
(foo|) bar
It gets weirder as you do more undos/redos from there.
Anyway, this would be less of a problem in Parinfer >= 2.0.0 since it will wait for you to type the matching ] instead of pushing everything to the right.