diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-03-10 21:42:12 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-03-10 21:42:12 -0400 |
commit | 05e0e6bb8299ae6bc25cb52f81a816adb0c560e5 (patch) | |
tree | 5d3770244a19d2b4c6501c4b88a40864b87aa4ac /src/canvas.rs | |
parent | 49bd298528e6feec5edb4f3566be76ab37369ac7 (diff) |
Forgot to set size field upon detecting a resize...
Diffstat (limited to 'src/canvas.rs')
-rw-r--r-- | src/canvas.rs | 2 |
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()?; |