prompt: fix cursor math for wide characters (#27017)
String.length counts code points, not display columns, so CJK characters and emoji that occupy two terminal cells caused misaligned cursors, broken mention triggers, and incorrect history restoration offsets. Use Bun.stringWidth for now, we need an alternative for this. Fix #26716 Close #26922
S
Simon Klee committed
8f05bbfaa62192b357d460e1d2d2b34f13f8dec7
Parent: d276d96
Committed by GitHub <noreply@github.com>
on 5/12/2026, 9:45:28 AM