diff options
author | Aram Drevekenin <aram@poor.dev> | 2021-12-10 09:42:40 +0100 |
---|---|---|
committer | Aram Drevekenin <aram@poor.dev> | 2021-12-10 09:42:40 +0100 |
commit | 448b805259a82d788247769005170e638115457b (patch) | |
tree | a3bc3c9f5ab53a542f471dd3d7880ba751265666 /default-plugins | |
parent | c0afb23e068b83ee016473922464116b28767969 (diff) |
hotfix: default to quicknav tip
Diffstat (limited to 'default-plugins')
-rw-r--r-- | default-plugins/status-bar/src/second_line.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/default-plugins/status-bar/src/second_line.rs b/default-plugins/status-bar/src/second_line.rs index 82806e5f5..6f3c6461f 100644 --- a/default-plugins/status-bar/src/second_line.rs +++ b/default-plugins/status-bar/src/second_line.rs @@ -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 { |