openpencil/crates/openpencil-shell-core
Kayshen-X 576c2fe4e1 fix(shell): pen-tool undo restores pre-pen state
`start_pen_path` was pushing the new Path node onto the page first
and only then calling `snapshot_for_history()` — the snapshot ended
up including the new node, so a subsequent undo restored "node
already present" and the path stayed on screen.

Take the snapshot before any mutation; finish_pen_path still
gates the push on `anchor_count >= 2` so single-anchor paths
don't pollute the undo stack.
2026-05-12 21:32:07 +08:00
..
src fix(shell): pen-tool undo restores pre-pen state 2026-05-12 21:32:07 +08:00
tests style(shell): cargo fmt --all (rustfmt-clean) 2026-05-10 18:47:33 +08:00
Cargo.toml feat(shell-core): Phase B1 — Widget trait + recording test harness 2026-05-09 21:45:00 +08:00