diff options
author | Tim Oram <dev@mitmaro.ca> | 2021-01-27 18:38:39 -0330 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2021-01-27 19:03:19 -0330 |
commit | ad4020c4b8f2e7d9ca48ab650beb26fad18bfcb5 (patch) | |
tree | e8e54ff6e4702178d15ea2ccc5a22a41cc3f1b88 /src/process/help.rs | |
parent | ca089a55bd8ab3c7387bff0a92a4aab674e73d05 (diff) |
Rewrite display and input to use Crossterm
The project has pushed the limits of what curses can support on Windows
systems. Crossterm has far superior support for creating cross platform
TUI applications.
Diffstat (limited to 'src/process/help.rs')
-rw-r--r-- | src/process/help.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process/help.rs b/src/process/help.rs index 7b9b643..493e9f9 100644 --- a/src/process/help.rs +++ b/src/process/help.rs @@ -50,7 +50,7 @@ impl ProcessModule for Help { view_data } - fn handle_input(&mut self, view: &View<'_>, _: &mut TodoFile) -> ProcessResult { + fn handle_input(&mut self, view: &mut View<'_>, _: &mut TodoFile) -> ProcessResult { let input = view.get_input(InputMode::Default); let mut result = ProcessResult::new().input(input); let mut view_data = self.view_data.as_mut().unwrap_or(&mut self.no_help_view_data); @@ -127,6 +127,7 @@ mod tests { use super::*; use crate::assert_process_result; use crate::assert_rendered_output; + use crate::display::size::Size; use crate::process::testutil::{process_module_test, TestContext, ViewState}; #[test] @@ -151,7 +152,7 @@ mod tests { process_module_test( &[], ViewState { - size: (22, 100), + size: Size::new(22, 100), ..ViewState::default() }, &[], |