summaryrefslogtreecommitdiffstats
path: root/src/canvas.rs
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-03-10 21:42:12 -0400
committerClementTsang <cjhtsang@uwaterloo.ca>2020-03-10 21:42:12 -0400
commit05e0e6bb8299ae6bc25cb52f81a816adb0c560e5 (patch)
tree5d3770244a19d2b4c6501c4b88a40864b87aa4ac /src/canvas.rs
parent49bd298528e6feec5edb4f3566be76ab37369ac7 (diff)
Forgot to set size field upon detecting a resize...
Diffstat (limited to 'src/canvas.rs')
-rw-r--r--src/canvas.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/canvas.rs b/src/canvas.rs
index a5703f3d..eb534adb 100644
--- a/src/canvas.rs
+++ b/src/canvas.rs
@@ -147,6 +147,8 @@ impl Painter {
self.width = current_width;
} else if self.height != current_height || self.width != current_width {
app_state.is_resized = true;
+ self.height = current_height;
+ self.width = current_width;
}
terminal.autoresize()?;