You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you delete or move text that was affected by colorizer and then undo, the colorizer will be where the cursor was before the undo instead of where it originally was before undoing.
Here are two reproducible examples:
Indent (>>) and then undo (u). You will see that the colorization is one indentation level further than it should be. (See Undo repaint event #71.)
Cut (dd) and then undo (u). You will see that the colorization is one line lower than it should be.
An easy fix is to reload colorizer after every undo. I came up with this neat workaround:
If you delete or move text that was affected by colorizer and then undo, the colorizer will be where the cursor was before the undo instead of where it originally was before undoing.
Here are two reproducible examples:
>>
) and then undo (u
). You will see that the colorization is one indentation level further than it should be. (See Undo repaint event #71.)dd
) and then undo (u
). You will see that the colorization is one line lower than it should be.An easy fix is to reload colorizer after every undo. I came up with this neat workaround:
However, this is a workaround and not a solution.
Operating System: Gentoo GNU/Linux
Neovim Version: 0.7.2
Colorizer Version: 36c610a
The text was updated successfully, but these errors were encountered: