T35: review round 3: a program's link target is kept whole, as the scanner keeps it, so a prompt inside a long link is numbered and gives the link back plain at its end, and the tap reads a 517th of its room to hold the growth; an ESC that ends an OSC the parser has goes on at once, so controls after it run where vte runs them
CI / platforms (ubuntu-24.04) (push) Successful in 1m15s
CI / platforms (windows-latest) (push) Successful in 1m45s
CI / macos (push) Successful in 11m49s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-17 00:26:34 -04:00
1 parent e2bb615a19
commit 11ec0effa0
5 files changed
+104 -49

No files matched your search

+4 -1
View File
@@ -45,7 +45,10 @@ impl<P> Tapped<P> {
impl<P: EventedReadWrite> io::Read for Tapped<P> {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
// What a rewrite adds stays inside the buffer, with room for the held sequence's own.
let take = buf.len().saturating_sub(self.prompts.held() + 300) / prompts::GROWTH;
let room = buf
.len()
.saturating_sub(self.prompts.held() + prompts::SLACK);
let take = room / prompts::GROWTH;
if take == 0 {
return Ok(0);
}