Skip to content

Commit cfedbd1

Browse files
author
Stephan Dilly
committed
fixes #448
* annotate a change in the keybindings more explicitly * log error reading key bindings into log
1 parent 307a83b commit cfedbd1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

assets/vim_style_key_config.ron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,7 @@
6969
delete_branch: ( code: Char('D'), modifiers: ( bits: 1,),),
7070
push: ( code: Char('p'), modifiers: ( bits: 0,),),
7171
fetch: ( code: Char('f'), modifiers: ( bits: 0,),),
72+
73+
//removed in 0.11
74+
//tab_toggle_reverse_windows: ( code: BackTab, modifiers: ( bits: 1,),),
7275
)

src/keys.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,13 @@ impl KeyConfig {
157157
}
158158

159159
pub fn init() -> Self {
160-
Self::init_internal().unwrap_or_default()
160+
match Self::init_internal() {
161+
Ok(v) => v,
162+
Err(e) => {
163+
log::error!("failed loading key binding: {}", e);
164+
Self::default()
165+
}
166+
}
161167
}
162168
}
163169

0 commit comments

Comments
 (0)