Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo often doesn't restore code to original state #72

Open
shaunlebron opened this issue Aug 30, 2016 · 3 comments
Open

Undo often doesn't restore code to original state #72

shaunlebron opened this issue Aug 30, 2016 · 3 comments

Comments

@shaunlebron
Copy link
Collaborator

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

@oakmac
Copy link
Owner

oakmac commented Jan 13, 2017

Were you able to produce an example of this?

@shaunlebron
Copy link
Collaborator Author

shaunlebron commented Jan 13, 2017

With | as cursor:

(foo|) bar

Insert [

(foo[| bar])

After pressing undo...

❌ Actual

(foo| bar)

✔️ Expected

(foo|) bar

@shaunlebron
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants