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/process/help.rs | |
parent | 2ca4725a8bd33cfeb69d8b15283f0225d43d7a40 (diff) |
Add Size struct and refactor
Diffstat (limited to 'src/process/help.rs')
-rw-r--r-- | src/process/help.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process/help.rs b/src/process/help.rs index e0ec39f..9c47492 100644 --- a/src/process/help.rs +++ b/src/process/help.rs @@ -42,7 +42,8 @@ impl ProcessModule for Help { } fn build_view_data(&mut self, view: &View<'_>, _: &TodoFile) -> &ViewData { - let (view_width, view_height) = view.get_view_size(); + let view_width = view.get_view_size().width(); + let view_height = view.get_view_size().height(); let view_data = self.view_data.as_mut().unwrap_or(&mut self.no_help_view_data); view_data.set_view_size(view_width, view_height); view_data.rebuild(); |