jcode
jcode copied to clipboard
Composer undo stops at arbitrary Korean IME event boundaries
Reproduction
In the Ghostty TUI with a Korean keyboard, type 가나다 in the prompt and press Cmd+Z (Cmd+ㅋ on the Korean layout).
Actual
The composer can leave 가 behind because each terminal text event gets its own undo snapshot. A single IME event may also contain more than one committed syllable, so the outcome depends on event chunking.
Expected
A contiguous typing burst should undo as one edit, leaving the previous draft (empty in this example). Whitespace, paste, cursor edits and pauses should remain separate undo boundaries.
Scope
TUI composer input for local and remote sessions. The terminal receives committed text rather than an IME composition state.