-
Notifications
You must be signed in to change notification settings - Fork 123
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
Bug: undo after ClangFormat does undo twice, erasing previous changes #98
Comments
I think I have a local fix for this, can prepare a PR tomorrow. Would it be possible for you to try it out? |
Least I can do. Thanks |
Met some unexpected issues when I added a small unit test for the issue at
hand. Still works in my normal environment though. Will continue tomorrow.
…On Fri, 17 Apr 2020, 08:02 aravind2612krishna, ***@***.***> wrote:
Least I can do. Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#98 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJB5UQRC7HZAJRU26B2CBXLRM7WGVANCNFSM4MHPPDDA>
.
|
Kind of hard to follow the history of this, but currently (NVIM v0.5.0-427-g1f56f9a4b) it seems like this undojoin makes some unexpected behaviour for the user. Unable to tell what-else is unlocked by removing it, so let's try without it for a while.
@aravind2612krishna, while I still have issues in the test, it works for my normal vim/nvim instance. At your convenience, it would be valuable it you could try it out and see if the fix is also valid in your setup. |
Kind of hard to follow the history of this, but currently (NVIM v0.5.0-427-g1f56f9a4b) it seems like this undojoin makes some unexpected behaviour for the user. Unable to tell what-else is unlocked by removing it, so let's try without it for a while.
I tried with the plugin from 'Kypert/vim-clang-format', but similar behavior persists. |
Interesting, just to make sure, did you use the fix branch:
|
Apologies. It does work in that branch, I just tried. |
Do you know why the undojoin is there? |
Kind of hard to follow the history of this, but currently (NVIM v0.5.0-427-g1f56f9a4b) it seems like this undojoin makes some unexpected behaviour for the user. Unable to tell what-else is unlocked by removing it, so let's try without it for a while.
Can this PR be accepted? I have this same issue with undos |
Kind of hard to follow the history of this, but currently (NVIM v0.5.0-427-g1f56f9a4b) it seems like this undojoin makes some unexpected behaviour for the user. Unable to tell what-else is unlocked by removing it, so let's try without it for a while.
Neovim, windows.
To reproduce :
In the simple file below, try changing Hello to something else, then selecting the lines and doing a clang format.
Then, doing an Undo undoes the Hello change as well.
The text was updated successfully, but these errors were encountered: