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

Attempt to fix borked undo (user gets caught in an undo loop) #53

Closed
wants to merge 1 commit into from

Conversation

spinningarrow
Copy link
Contributor

@spinningarrow spinningarrow commented Aug 8, 2018

This needs the latest Vim (8.1) with patch 245.

The idea is to invoke parinfer only during regular edits but not after an undo since invoking parinfer after an undo creates a branch in the undo tree causing previous changes to not be easily reachable and the user to be caught in an undo loop.

Not sure if the try... undojoin thing is the best approach - happy to use a better alternative if there is one.

This needs the latest Vim (8.1) with patch 245.

The idea is to invoke parinfer only during regular edits but not after
an undo since invoking parinfer after an undo creates a branch in the
undo tree causing previous changes to not be easily reachable and the
user to be caught in an undo loop.
@iamFIREcracker
Copy link
Contributor

I almost stopped using parinfer because of this problem... I am going to give it a go, and confirm if this actually fixes the problem.

@iamFIREcracker iamFIREcracker mentioned this pull request Feb 4, 2020
@spinningarrow
Copy link
Contributor Author

This is really old and I haven't been clojur-ing for a while. Should I close this?

@bhurlow
Copy link
Owner

bhurlow commented Jun 16, 2022

yea this bug really is a pain. I'm actually favoring using https://github.com/eraserhd/parinfer-rust now and it has similar issues with undo. Really not sure how best to address but could give this a test run

@spinningarrow
Copy link
Contributor Author

Closing, been open for a long time and I'm not actively using the plugin at the moment.

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

Successfully merging this pull request may close these issues.

3 participants