Files
tty7/src
l0ng-ai 609e1b04a6 fix(terminal): let Ctrl-D close the typeahead record only on an empty line
Readline, PSReadLine, a cooked tty and tty7's own editor all treat Ctrl-D
as end of input only when the line is empty; with text on it Ctrl-D is an
edit. Discarding a record that still holds unsubmitted text dropped the
owed wipe, so text typed during a gap followed by Ctrl-D stayed on the
shell's line and was glued to the front of the next command. Ctrl-D now
discards only a record with no unsubmitted text, and taints otherwise.
2026-09-14 18:33:22 +08:00
..