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

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

Open spinningarrow opened this issue 6 years ago • 3 comments

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.

spinningarrow avatar Aug 08 '18 03:08 spinningarrow

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 avatar Jan 17 '20 11:01 iamFIREcracker

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

spinningarrow avatar Jun 16 '22 09:06 spinningarrow

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

bhurlow avatar Jun 16 '22 12:06 bhurlow