Keep terminal textbox cursor on rune boundaries
This commit is contained in:
committed by
Brandon McGinty
parent
5bf3ed8b84
commit
2bdf9a8193
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user