Fixed minor prompt styling issue.

This commit is contained in:
Matias Barcenas 2017-11-30 20:58:54 -06:00
parent 765d2b2f56
commit ead90d1f5b
1 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ function interface_prompt() {
done done
# The following conditional is required since io_query_format_fields # 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 if [ "$6" ]; then # Add alternative choices
__interface_prompt__ifAvailable+=("${!3}") __interface_prompt__ifAvailable+=("${!3}")
__interface_prompt__ifAvailableInfo+=("${!4}") __interface_prompt__ifAvailableInfo+=("${!4}")
@ -192,7 +192,7 @@ function interface_prompt() {
InterfacePromptWISelectedState="[+]" # It passed the condition, it must be + InterfacePromptWISelectedState="[+]" # It passed the condition, it must be +
InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}" InterfacePromptWISelectedInfo="${__interface_prompt__ifAvailableInfo[0]}"
else 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" \ io_query_format_fields "$1" "$FormatApplyAutosize" \
__interface_prompt__ifAvailableColor[@] __interface_prompt__ifAvailable[@] \ __interface_prompt__ifAvailableColor[@] __interface_prompt__ifAvailable[@] \
__interface_prompt__ifAvailableState[@] __interface_prompt__ifAvailableInfo[@] __interface_prompt__ifAvailableState[@] __interface_prompt__ifAvailableInfo[@]