hotfix: default to quicknav tip

This commit is contained in:
Aram Drevekenin 2021-12-10 09:42:40 +01:00
parent c0afb23e06
commit 448b805259

View file

@ -214,7 +214,9 @@ fn best_effort_shortcut_list(help: &ModeInfo, tip: TipFn, max_len: usize) -> Lin
pub fn keybinds(help: &ModeInfo, tip_name: &str, max_width: usize) -> LinePart {
// It is assumed that there is at least one TIP data in the TIPS HasMap.
let tip_body = TIPS.get(tip_name).unwrap();
let tip_body = TIPS
.get(tip_name)
.unwrap_or_else(|| TIPS.get("quicknav").unwrap());
let full_shortcut_list = full_shortcut_list(help, tip_body.full);
if full_shortcut_list.len <= max_width {