Keep terminal textbox cursor on rune boundaries

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-09 14:31:40 -04:00
committed by Brandon McGinty
parent 5bf3ed8b84
commit 2bdf9a8193
3 changed files with 38 additions and 8 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ Priority 3: configuration, UI, and binding hardening
fails, hiding startup failure. Return that error. Also stop/join the
PollEvent goroutine on UI shutdown and make Close nonblocking/idempotent.
31. Text UI is not Unicode-safe and timestamp parsing is fragile
[x] 31. Text UI is not Unicode-safe and timestamp parsing is fragile
Files: uiterm/textbox.go, uiterm/textview.go
Textbox cursor positions are byte offsets but editing/display iterates
runes, so non-ASCII input can be split into invalid UTF-8. Textview assumes