diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-04-29 22:16:27 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-04-29 22:16:27 -0400 |
commit | 32a40e37c16f867d76642fd791eb996a37ef3f6b (patch) | |
tree | 97f1a42b8f714d3e738be1d1884ae564c54c65fe /src/ui | |
parent | 065ef4d5a1f5443de5726343323403477b0263b5 (diff) |
rename CommandMapping to KeyMapping
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/views/tui_command_menu.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/views/tui_command_menu.rs b/src/ui/views/tui_command_menu.rs index 0d019ad..b2dcc35 100644 --- a/src/ui/views/tui_command_menu.rs +++ b/src/ui/views/tui_command_menu.rs @@ -5,7 +5,7 @@ use tui::layout::Rect; use tui::widgets::Clear; use crate::commands::{CommandKeybind, KeyCommand}; -use crate::config::JoshutoCommandMapping; +use crate::config::JoshutoKeyMapping; use crate::context::JoshutoContext; use crate::ui::views::TuiView; use crate::ui::widgets::TuiMenu; @@ -28,9 +28,9 @@ impl TuiCommandMenu { &mut self, backend: &mut TuiBackend, context: &mut JoshutoContext, - m: &'a JoshutoCommandMapping, + map: &'a JoshutoKeyMapping, ) -> Option<&'a KeyCommand> { - let mut map: &JoshutoCommandMapping = &m; + let mut map = map; let terminal = backend.terminal_mut(); context.flush_event(); |