Skip to content

feat: gap replay on scratch buffer, never modify tracked buffer#2

Merged
akesling merged 1 commit intomainfrom
akesling/vcs
Feb 25, 2026
Merged

feat: gap replay on scratch buffer, never modify tracked buffer#2
akesling merged 1 commit intomainfrom
akesling/vcs

Conversation

@akesling
Copy link
Copy Markdown
Contributor

Use wundo/rundo to clone the undo tree into a hidden scratch buffer for gap replay instead of running undo commands on the tracked buffer. This prevents interference with LSP, other autocmds, and syntax highlighting during intermediate step capture.

Remove the now-unnecessary replaying re-entrancy guard.

Use wundo/rundo to clone the undo tree into a hidden scratch buffer
for gap replay instead of running undo commands on the tracked buffer.
This prevents interference with LSP, other autocmds, and syntax
highlighting during intermediate step capture.

Remove the now-unnecessary `replaying` re-entrancy guard.
@akesling akesling merged commit fd2a861 into main Feb 25, 2026
2 checks passed
@akesling akesling deleted the akesling/vcs branch February 25, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant