atom-parinfer icon indicating copy to clipboard operation
atom-parinfer copied to clipboard

Undo often doesn't restore code to original state

Open shaunlebron opened this issue 9 years ago • 3 comments

I can produce an example later, but I often have to fix my code after going back too far in the undo stack.

shaunlebron avatar Aug 30 '16 05:08 shaunlebron

Were you able to produce an example of this?

oakmac avatar Jan 13 '17 03:01 oakmac

With | as cursor:

(foo|) bar

Insert [

(foo[| bar])

After pressing undo...

❌ Actual

(foo| bar)

✔️ Expected

(foo|) bar

shaunlebron avatar Jan 13 '17 05:01 shaunlebron

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.

shaunlebron avatar Jan 13 '17 05:01 shaunlebron