Fix editor crash with wide characters (emojis, CJK)

Editor text wrapping now uses grapheme-aware width calculation instead
of string length. Fixes crash when pasting text containing emojis like
 or CJK characters that are 2 terminal columns wide.
This commit is contained in:
Mario Zechner 2025-12-06 21:24:26 +01:00
parent a325c1c7d1
commit d7f84469a7
3 changed files with 212 additions and 35 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- **Editor crash with emojis/CJK characters**: Fixed crash when pasting or typing text containing wide characters (emojis like ✅, CJK characters) that caused line width to exceed terminal width. The editor now uses grapheme-aware text wrapping with proper visible width calculation.
## [0.12.14] - 2025-12-06
### Added