mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-19 02:26:48 +00:00
The tabs share one text box, and its Undo history was cleared whenever another document's box took it: opening a paragraph in tab B wiped tab A's typing steps, so Edit ▸ Undo back in A found none and closed A's paragraph instead of taking the typing back. The box being left now keeps a copy of its history and caret aside, under its document, and the same box gets it back on its return; a box new to the text box still starts with none, so typing still never reaches another tab. The copy is a deep one: a state's history is shared between its clones.