mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 11:16:25 +00:00
When only some frames of a threaded story are selected, Remove Line Breaks and Remove Paragraph Breaks built the story's frame list again for every selected frame of it, so the work grew with the square of the frame count. The command now notes a thread once its story is found not to be selected in full, and reads that thread's other selected frames on their own without going through the thread again. Each selected frame still loses its own breaks, in the order selected, as one undo step. A test-only counter in threads.rs counts story_in calls, and remove_breaks_goes_through_a_partly_named_story_once checks both break kinds with frames named out of order and twice.