diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-18 22:29:44 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-18 22:29:44 -0400 |
commit | f3081669e488c54ab4fcae2829ea2f58f082c6e7 (patch) | |
tree | d3c83c861f4733e7930e4d7733b059b38404c588 /src/run.rs | |
parent | 12f28d72fa9814bcd9fb2fd5bc4c54fabe93c031 (diff) |
add default keymappings when config dne
- message colors are now yellow instead of cyan
- there is now a wrapper around keymap hashmap
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io: if !context.message_queue.is_empty() { let _ = context.message_queue.pop_front(); } - match keymap_t.get(&key) { + match keymap_t.as_ref().get(&key) { None => { context .message_queue |