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
This commit is contained in:
5 files changed
+104
-49
No files matched your search
+4
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user