ALE is impeding undo with clang-format fixer and g:ale_fix_on_save = 1 #4564
Unanswered
sdondley
asked this question in
Q&A - Ask for help with problems
Replies: 2 comments
-
Until I can find a better solution, I'm doing this for a workaround:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd report this as a bug. This sounds strange. Do you have Vim configured to automatically save files? I'm not sure what would cause this behaviour other than a fixer running. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this c code:
I have this in my vim file:
If I remove the "r" in return at the bottom of the function, I get an error as expected. But when I try to undo to fix the problem, the line temporarily changes and then reverts back to what it was with the same error.
If I change the return line to simply
return 0
and delete the "r" and do undo, the "r" is reverted back and the error disappears. So there's something aboutreturn sign * val / power;
that confuses ALE with fix on save turned on. Any fix aside from turning off fix on save?Beta Was this translation helpful? Give feedback.
All reactions