mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 11:48:24 +00:00
TextFieldBuffer.addStyle() positions are not adjusted by subsequent replace() calls. When multiple mentions had different-length display names, styles for later mentions became misaligned. Split into two phases: all replace() calls first, then all addStyle() calls with cumulative-shift-corrected positions. https://claude.ai/code/session_01SSsxsfJLbRiesBBhQFEVUd