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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@ -3550,7 +3550,7 @@ dependencies = [
[[package]] [[package]]
name = "reedline" name = "reedline"
version = "0.3.1" version = "0.3.1"
source = "git+https://github.com/nushell/reedline?branch=main#63327477305f623f7258b3416e2702af57e25c0f" source = "git+https://github.com/nushell/reedline?branch=main#922fab18e0e4dc3320300e30e240b8396a042682"
dependencies = [ dependencies = [
"chrono", "chrono",
"crossterm", "crossterm",

View File

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