mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-22 11:46:11 +03:00
terminal: PageList rowIterator respects limit row
This commit is contained in:
@ -2164,7 +2164,13 @@ pub const RowIterator = struct {
|
|||||||
self.chunk = self.page_it.next();
|
self.chunk = self.page_it.next();
|
||||||
if (self.chunk) |c| self.offset = c.end - 1;
|
if (self.chunk) |c| self.offset = c.end - 1;
|
||||||
} else {
|
} else {
|
||||||
self.offset -= 1;
|
// If we're at the start of the chunk and its a non-zero
|
||||||
|
// offset then we've reached a limit.
|
||||||
|
if (self.offset == chunk.start) {
|
||||||
|
self.chunk = null;
|
||||||
|
} else {
|
||||||
|
self.offset -= 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user