diff options
author | Tim Oram <dev@mitmaro.ca> | 2021-01-17 15:55:07 -0330 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2021-01-27 19:03:19 -0330 |
commit | 8fd1c53e23d91ccb3051ab030042966eebe327f4 (patch) | |
tree | 4cb9e5e6bb8e4d2cb9bddf390a0cf42e772afeb7 /src/confirm_rebase/mod.rs | |
parent | 2ca4725a8bd33cfeb69d8b15283f0225d43d7a40 (diff) |
Add Size struct and refactor
Diffstat (limited to 'src/confirm_rebase/mod.rs')
-rw-r--r-- | src/confirm_rebase/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/confirm_rebase/mod.rs b/src/confirm_rebase/mod.rs index 71344b2..362a515 100644 --- a/src/confirm_rebase/mod.rs +++ b/src/confirm_rebase/mod.rs @@ -14,8 +14,9 @@ pub struct ConfirmRebase { impl ProcessModule for ConfirmRebase { fn build_view_data(&mut self, view: &View<'_>, _: &TodoFile) -> &ViewData { - let (window_width, window_height) = view.get_view_size(); - self.view_data.set_view_size(window_width, window_height); + let view_width = view.get_view_size().width(); + let view_height = view.get_view_size().height(); + self.view_data.set_view_size(view_width, view_height); self.view_data.rebuild(); &self.view_data } |