Commit Graph

1 Commits

Author SHA1 Message Date
Brooklyn Nicholson 59a7da9a89 fix(tui): scope Ctrl+U / Ctrl+K to the current line, per readline
Both kills operated on the whole buffer: Ctrl+U wiped everything before
the cursor and Ctrl+K everything after, regardless of newlines. Readline
scopes them to the current logical line, and Claude Code documents Ctrl+U
as "repeat to clear across lines in multiline input" — which only works
if a press at a line boundary consumes the newline and makes progress.

Extract killToLineStart / killToLineEnd and route all four call sites
through them, so the Cmd chords and their Ctrl equivalents cannot drift.
2026-07-30 04:26:42 -05:00