Ensure orbclient example reshapes
This commit is contained in:
parent
1a5b01575d
commit
c60aaaf9d2
2 changed files with 3 additions and 1 deletions
|
|
@ -80,6 +80,8 @@ fn main() {
|
|||
loop {
|
||||
let mut force_drag = true;
|
||||
|
||||
buffer.shape_until_scroll();
|
||||
|
||||
if buffer.redraw {
|
||||
let instant = Instant::now();
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue