mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-26 03:17:28 -06:00
styles.updateToMatch copied only the direct run/paragraph formatting at the caret onto the style, so text whose look came from its own style (Normal, Title, ...) changed nothing; it then wiped that paragraph's direct formatting without applying the style, so the selection lost its look too. Now the style takes the selection's effective formatting (paragraph style chain, character style chain, direct formatting) as a diff against what the style currently gives, keeping its outline level and numbering. The selected paragraphs take the style and drop only the direct formatting it now carries. The Home styles gallery tiles get the right-click menu (Update to Match Selection, Modify...). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>