hotfix: default to quicknav tip
This commit is contained in:
parent
c0afb23e06
commit
448b805259
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
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.
|
// 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);
|
let full_shortcut_list = full_shortcut_list(help, tip_body.full);
|
||||||
if full_shortcut_list.len <= max_width {
|
if full_shortcut_list.len <= max_width {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue