diff --git a/helix-term/src/config.rs b/helix-term/src/config.rs index 9372cd1d8764e..ef559eca2a16a 100644 --- a/helix-term/src/config.rs +++ b/helix-term/src/config.rs @@ -70,8 +70,8 @@ impl Config { (Ok(global), Ok(local)) => { let mut keys; match local.unbind_default_keys { - true => keys = HashMap::default(), - false => keys = keymap::default(), + true => keys = HashMap::default(), + false => keys = keymap::default(), } if let Some(global_keys) = global.keys { merge_keys(&mut keys, global_keys) @@ -104,8 +104,8 @@ impl Config { (Ok(config), Err(_)) | (Err(_), Ok(config)) => { let mut keys; match config.unbind_default_keys { - true => keys = HashMap::default(), - false => keys = keymap::default(), + true => keys = HashMap::default(), + false => keys = keymap::default(), } if let Some(keymap) = config.keys { merge_keys(&mut keys, keymap); diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index cb3d3c63a5472..1032c610c059e 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -319,8 +319,8 @@ impl Keymaps { // TODO: remove the sticky part and look up manually let keymaps = &*self.map(); let keymap = match keymaps.get(&mode) { - Some(keymap) => keymap, - None => return KeymapResult::NotFound, + Some(keymap) => keymap, + None => return KeymapResult::NotFound, }; if key!(Esc) == key {