Ensure orbclient example reshapes

This commit is contained in:
Jeremy Soller 2022-10-25 15:33:48 -06:00
parent 1a5b01575d
commit c60aaaf9d2
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
2 changed files with 3 additions and 1 deletions

View file

@ -80,6 +80,8 @@ fn main() {
loop {
let mut force_drag = true;
buffer.shape_until_scroll();
if buffer.redraw {
let instant = Instant::now();

View file

@ -354,7 +354,7 @@ impl<'a> TextBuffer<'a> {
self.shape_until_scroll();
}
fn shape_until_scroll(&mut self) {
pub fn shape_until_scroll(&mut self) {
let lines = self.lines();
let scroll_end = self.scroll + lines;