You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stream CRLF normalization directly into libghostty
The old path allocated up to 131 KB of stack scratch (plus heap
fallback with a silent-truncation failure mode) and did two passes
over the input: one to count bare \n, one to copy-and-insert \r.
Replace with a single streaming pass that writes maximal raw segments
directly to libghostty's VT parser via vtWrite and emits "\r\n" inline
at each bare \n. libghostty's state machine already handles arbitrary
chunking (it's how the filter feeds data anyway), so no scratch buffer
is needed.
Zero allocation, no truncation risk, no behaviour change.
0 commit comments