From 6b4cb8b0e0465d2590784c39160858e3bb6d7bef Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Fri, 8 Apr 2022 07:57:39 +0100 Subject: [PATCH] short descriptions (#5130) --- Cargo.lock | 2 +- crates/nu-cli/src/menus/description_menu.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5dcab13e8..272ac07ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/crates/nu-cli/src/menus/description_menu.rs b/crates/nu-cli/src/menus/description_menu.rs index c90ace0e0..7ab0bfec0 100644 --- a/crates/nu-cli/src/menus/description_menu.rs +++ b/crates/nu-cli/src/menus/description_menu.rs @@ -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, )