summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2021-12-05 15:40:51 -0500
committerJeff Zhao <jeff.no.zhao@gmail.com>2021-12-05 15:40:51 -0500
commit99b887cc198e9b4d128845d4a2b0c1d33347208c (patch)
treea4cf43c0abe8d58bff4a402cbba86ac8a5c6dcff /src/util
parenta00c0d61a179d001d942d961bc000b3dcd8ac73a (diff)
cargo fmt
Diffstat (limited to 'src/util')
-rw-r--r--src/util/input.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/util/input.rs b/src/util/input.rs
index e98ba45..faede36 100644
--- a/src/util/input.rs
+++ b/src/util/input.rs
@@ -141,7 +141,12 @@ pub fn process_file_preview(
}
}
-pub fn process_unsupported(context: &mut AppContext, backend: &mut ui::TuiBackend, keymap_t: &AppKeyMapping, event: Vec<u8>) {
+pub fn process_unsupported(
+ context: &mut AppContext,
+ backend: &mut ui::TuiBackend,
+ keymap_t: &AppKeyMapping,
+ event: Vec<u8>,
+) {
match event.as_slice() {
[27, 79, 65] => {
let command = Command::CursorMoveUp(1);
@@ -155,7 +160,7 @@ pub fn process_unsupported(context: &mut AppContext, backend: &mut ui::TuiBacken
context.message_queue_mut().push_error(e.to_string());
}
}
- _ => {},
+ _ => {}
}
}