From ead90d1f5b36974a3482e63b6765d8e20a3ac232 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Thu, 30 Nov 2017 20:58:54 -0600 Subject: [PATCH] Fixed minor prompt styling issue. --- lib/InterfaceUtils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index b0186c7..ada9111 100755 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -178,7 +178,7 @@ function interface_prompt() { done # The following conditional is required since io_query_format_fields - # only considers the the size of the first parameter, available color. + # only considers the the size of the first parameter, available color. if [ "$6" ]; then # Add alternative choices __interface_prompt__ifAvailable+=("${!3}") __interface_prompt__ifAvailableInfo+=("${!4}") @@ -192,7 +192,7 @@ function interface_prompt() { InterfacePromptWISelectedState="[+]" # It passed the condition, it must be + InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}" else - format_apply_autosize "$CRed[$CYel%1d$CRed]%b %-8b %3s %-*.*s\n" + format_apply_autosize "$CRed[$CYel%1d$CRed]%b %-8b %3s$CClr %-*.*s\n" io_query_format_fields "$1" "$FormatApplyAutosize" \ __interface_prompt__ifAvailableColor[@] __interface_prompt__ifAvailable[@] \ __interface_prompt__ifAvailableState[@] __interface_prompt__ifAvailableInfo[@]