diff options
author | Tim Oram <dev@mitmaro.ca> | 2021-01-17 19:12:51 -0330 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2021-01-27 19:03:19 -0330 |
commit | 65ffadbe8481cd1c852f585fe1e14820f2c74f67 (patch) | |
tree | 470d17b0bc9faca6726fbd0f0120f2735bd47013 /src/process/help.rs | |
parent | 8fd1c53e23d91ccb3051ab030042966eebe327f4 (diff) |
Add mutable to curses
Diffstat (limited to 'src/process/help.rs')
-rw-r--r-- | src/process/help.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process/help.rs b/src/process/help.rs index 9c47492..7b9b643 100644 --- a/src/process/help.rs +++ b/src/process/help.rs @@ -1,5 +1,5 @@ use crate::display::display_color::DisplayColor; -use crate::input::input_handler::{InputHandler, InputMode}; +use crate::input::input_handler::InputMode; use crate::input::Input; use crate::process::process_module::ProcessModule; use crate::process::process_result::ProcessResult; @@ -50,8 +50,8 @@ impl ProcessModule for Help { view_data } - fn handle_input(&mut self, input_handler: &InputHandler<'_>, _: &mut TodoFile, _: &View<'_>) -> ProcessResult { - let input = input_handler.get_input(InputMode::Default); + fn handle_input(&mut self, view: &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); if handle_view_data_scroll(input, &mut view_data).is_none() && input != Input::Resize { |