aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2020-11-25 14:19:05 -0800
committerJames Campos <james.r.campos@gmail.com>2020-11-25 14:19:05 -0800
commitb6cfca110cc90a5da88e7409aa60cdfa1fefad72 (patch)
tree5cf567161a66d66940f73a5d038261964955e4a2 /src/main.rs
parent2a9bd053196deb7710729bc3541e7d5feb9e4856 (diff)
downloadbk-b6cfca110cc90a5da88e7409aa60cdfa1fefad72.tar.gz
on_resize
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 1792dfb..ac3d8cc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -185,6 +185,7 @@ impl Bk<'_> {
match event::read()? {
Event::Key(e) => view.on_key(self, e.code),
+ Event::Mouse(e) => view.on_mouse(self, e),
Event::Resize(cols, rows) => {
self.rows = rows as usize;
if cols != self.cols {
@@ -194,8 +195,8 @@ impl Bk<'_> {
c.lines = wrap(&c.text, width);
}
}
+ view.on_resize(self);
}
- Event::Mouse(e) => view.on_mouse(self, e),
}
}