summaryrefslogtreecommitdiffstats
path: root/src/modules/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/list.rs')
-rw-r--r--src/modules/list.rs18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/modules/list.rs b/src/modules/list.rs
index 8f106f1..8b56b45 100644
--- a/src/modules/list.rs
+++ b/src/modules/list.rs
@@ -117,8 +117,8 @@ impl Module for List {
ListState::Edit => self.handle_edit_mode_input(event),
}
},
- || self.handle_normal_help_input(event, view_state),
- || self.handle_visual_help_input(event, view_state),
+ || self.normal_mode_help.handle_event(event, view_state),
+ || self.visual_mode_help.handle_event(event, view_state),
|| self.handle_search_input(event)
)
}
@@ -590,20 +590,6 @@ impl List {
}
}
- fn handle_normal_help_input(&mut self, event: Event, view_state: &crate::view::State) -> Option<Results> {
- self.normal_mode_help.is_active().then(|| {
- self.normal_mode_help.handle_event(event, view_state);
- Results::new()
- })
- }
-
- fn handle_visual_help_input(&mut self, event: Event, view_state: &crate::view::State) -> Option<Results> {
- self.visual_mode_help.is_active().then(|| {
- self.visual_mode_help.handle_event(event, view_state);
- Results::new()
- })
- }
-
fn handle_search_input(&mut self, event: Event) -> Option<Results> {
if !self.search_bar.is_active() {
return None;