What
Ctrl+K (0x0B) in the interactive line editor was wired to clearScreen() — duplicating Ctrl+L and leaving the documented emacs kill-to-end-of-line unreachable. Ctrl+K is daily muscle memory for truncating a line, so this is a real papercut.
Ctrl+Know callskillToEnd()(which also pushes the killed text to the kill ring, soCtrl+Ycan yank it back). Clear-screen stays on Ctrl+L (0x0C).- Also removes a stray no-op
self.killToEnd()self-recursion at the end ofkillToEnd()(it returned immediately via thecursor >= lengthguard, but was clearly unintended).
Verification
zig buildclean.- PTY test: with the cursor before
DROPinecho keepDROP, Ctrl+K leavesecho keepand runs it → printskeep.
Two-line behavioral change in src/utils/terminal/line_editor.zig; no API changes.