mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-02 22:41:47 -06:00
Three holes in the shared text box's history: - Formatting applied with the paragraph open left typing_from as it was, so when the format left the text unchanged the box kept its history, and Redo put typing undone before the format back on top of it. applied() now resets typing_from, so the next claim clears it. - Undo or Redo from the menu in the same frame as a tab switch ran before the box was drawn, on the history of the other tab's box: Undo put tab B's text into tab A's box, and Redo put A's undone typing into B's. undo_in_page_box and redo_in_page_box now make the box claim the text box first (claim_typing), as drawing it does. - A box new to the text box cleared only the last box's history and kept its caret and selection; it now starts from a default state. claim_typing on LineEditor and TextDraft is now the one way a box takes the text box, for drawing and for the menu.