`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. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||