Skip to content

Commit

Permalink
Fix color term order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
urbanware-org committed Nov 20, 2023
1 parent 1655bb1 commit 1fc74aa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/colors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ get_color_code() {
fi
fi

# 1 = bold
# 2 = dim
# 3 = italic
# 4 = underline
# 5 = blink
# 9 = strikethrough


if [[ $color_name =~ \-b\-u$ ]] || [[ $color_name =~ \-u\-b$ ]] || \
[[ $color_name =~ \-bold\-underlined$ ]] || \
[[ $color_name =~ \-underlined\-bold$ ]]; then
Expand Down Expand Up @@ -182,7 +190,7 @@ read_color_file() {
warn "Please check the color config for quotes and remove them." 0
color_terms="$color_temp"
else
color_terms=$(xargs -n1 <<< "$color_temp" | sort -u | xargs)
color_terms=$(xargs -n1 <<< "$color_temp" | xargs)
fi

colorize+=( ["$color_line_term"]="$color_line_code" )
Expand Down

0 comments on commit 1fc74aa

Please sign in to comment.