mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
* fix(type): use the next visual line at shared wrap boundaries At soft-wrap and forced-break character offsets, resolve the caret's visual line from the last matching line rather than the preceding one. Make line-edge navigation share that choice and add regression tests for wrapped, forced and paragraph breaks. * test(type): use actual break characters in caret boundary regressions * fix(type): preserve the visual line when hit testing a shared wrap offset Keep caret index preference on the following line, but use pointer geometry for click-hit line identity at an adjacent line's end. * Update the caret round-trip test for wrap-boundary lines; cargo fmt The existing round-trip helper expected the first line containing a shared soft-wrap offset; the caret now reports the following line, where it is drawn and where hit testing lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Brandon Thomas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>