summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2021-04-29 22:16:27 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2021-04-29 22:16:27 -0400
commit32a40e37c16f867d76642fd791eb996a37ef3f6b (patch)
tree97f1a42b8f714d3e738be1d1884ae564c54c65fe /src/ui
parent065ef4d5a1f5443de5726343323403477b0263b5 (diff)
rename CommandMapping to KeyMapping
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/views/tui_command_menu.rs6
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();