Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Feb 6, 2024
1 parent 8810dd3 commit af6172e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yazi-fm/src/help/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ impl Widget for Bindings<'_> {

// On
let col1: Vec<_> =
bindings.iter().map(|c| ListItem::new(c.on()).style(THEME.help.on.into())).collect();
bindings.iter().map(|c| ListItem::new(c.on()).style(THEME.help.on)).collect();

// Exec
let col2: Vec<_> =
bindings.iter().map(|c| ListItem::new(c.exec()).style(THEME.help.exec.into())).collect();
bindings.iter().map(|c| ListItem::new(c.exec()).style(THEME.help.exec)).collect();

// Desc
let col3: Vec<_> = bindings
.iter()
.map(|c| ListItem::new(c.desc.as_deref().unwrap_or("-")).style(THEME.help.desc.into()))
.map(|c| ListItem::new(c.desc.as_deref().unwrap_or("-")).style(THEME.help.desc))
.collect();

let chunks = layout::Layout::horizontal([
Expand Down

0 comments on commit af6172e

Please sign in to comment.