Skip to content

Undo of a capture into an off-screen table cell moves the caret before the table #499

Closed

Description

@chhoumann

Type into a table cell near the top of a long note, scroll to the bottom, capture a timestamp, then click Undo. The note content is restored, but the caret lands at line 2, column 0. A second capture without moving the caret then goes before the table header and breaks the table's rendering. The text you typed survives.

Instrumentation shows Obsidian's own cell cleanup (cleanupChildren) rerendering the cell during Undo and dropping the caret. This happens the same way on master before and after #494 (src/services/CaptureService.ts, Undo path).

Seen on Obsidian 1.14.4 (Linux) during the verification of #494.

Expected: after Undo, the caret returns to where it was before the capture, so the next capture lands in the same cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions