* annotate a change in the keybindings more explicitly
* log error reading key bindings into log
This commit is contained in:
Stephan Dilly 2020-12-19 17:00:42 +01:00
parent 307a83ba48
commit cfedbd1b36
2 changed files with 10 additions and 1 deletions

View File

@ -69,4 +69,7 @@
delete_branch: ( code: Char('D'), modifiers: ( bits: 1,),),
push: ( code: Char('p'), modifiers: ( bits: 0,),),
fetch: ( code: Char('f'), modifiers: ( bits: 0,),),
//removed in 0.11
//tab_toggle_reverse_windows: ( code: BackTab, modifiers: ( bits: 1,),),
)

View File

@ -157,7 +157,13 @@ impl KeyConfig {
}
pub fn init() -> Self {
Self::init_internal().unwrap_or_default()
match Self::init_internal() {
Ok(v) => v,
Err(e) => {
log::error!("failed loading key binding: {}", e);
Self::default()
}
}
}
}