mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2026-11-26 15:19:10 +01:00
Rider has no speculative undo, so the undo stack is on the backend. The backend applies the frontend's changes as undo-transparent patches, merges all of them into one undo step, and undoes all transparent steps on top of the stack at once. So one `u` undid every change IdeaVim made since the backend's own last command, e.g. both deletions after `x x`. Before each command that follows a change, the frontend now asks the backend to end the undo step. If the step has only the frontend's changes, the backend merges a no-op non-transparent action into it first, so it's undone on its own. It relies on how the platform merges undo steps, so it's a workaround until RIDER-145069 is fixed.