Skip to content

Commit

Permalink
columnar_menu: fix explicit highlighting color (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored Jan 24, 2024
1 parent 7adffd5 commit 3bee07c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/menu/columnar_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,11 @@ impl ColumnarMenu {
let right_text_size = self.get_width().saturating_sub(left_text_size);
format!(
"{}{}{:max$}{}{}{}{}{}{}",
suggestion
.style
.unwrap_or(self.color.text_style)
.reverse()
.prefix(),
suggestion.style.unwrap_or(self.color.text_style).prefix(),
self.color.selected_text_style.prefix(),
&suggestion.value,
RESET,
self.color.description_style.reverse().prefix(),
self.color.description_style.prefix(),
self.color.selected_text_style.prefix(),
description
.chars()
Expand All @@ -367,11 +363,7 @@ impl ColumnarMenu {
} else {
format!(
"{}{}{}{}{:>empty$}{}",
suggestion
.style
.unwrap_or(self.color.text_style)
.reverse()
.prefix(),
suggestion.style.unwrap_or(self.color.text_style).prefix(),
self.color.selected_text_style.prefix(),
&suggestion.value,
RESET,
Expand Down

0 comments on commit 3bee07c

Please sign in to comment.