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]]
name = "reedline"
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 = [
"chrono",
"crossterm",

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,
)