short descriptions (#5130)

This commit is contained in:
Fernando Herrera
2022-04-08 07:57:39 +01:00
committed by GitHub
parent 48fa25fd42
commit 6b4cb8b0e0
2 changed files with 5 additions and 5 deletions

View File

@ -322,21 +322,21 @@ impl DescriptionMenu {
if use_ansi_coloring {
if index == self.index() {
format!(
"{}{}{:>empty$}{}{}",
"{}{}{}{:>empty$}{}",
self.color.selected_text_style.prefix(),
&suggestion.value,
"",
RESET,
"",
self.end_of_line(column, index),
empty = empty_space,
)
} else {
format!(
"{}{}{:>empty$}{}{}",
"{}{}{}{:>empty$}{}",
self.color.text_style.prefix(),
&suggestion.value,
"",
RESET,
"",
self.end_of_line(column, index),
empty = empty_space,
)