Skip to content

Commit 7f0ebe5

Browse files
skaldebaneclaude
authored andcommitted
fix: Fix bar_color_total spacing issue (cherry-picked from dylanaraps#2084)
Fixes the broken case statement that caused spacing issues with infobar memory indicator. Replaces with simpler if/else matching bar_color_elapsed. Closes #434 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 59fd3a0 commit 7f0ebe5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

neofetch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4572,11 +4572,11 @@ set_text_colors() {
45724572
bar_color_elapsed="$(color "$bar_color_elapsed")"
45734573
fi
45744574

4575-
case ${bar_color_total}${1} in
4576-
distro[736]) bar_color_total=$(color "$1") ;;
4577-
distro*) bar_color_total=$(color "$2") ;;
4578-
*) bar_color_total=$(color "$bar_color_total") ;;
4579-
esac
4575+
if [[ "$bar_color_total" == "distro" ]]; then
4576+
bar_color_total="$(color fg)"
4577+
else
4578+
bar_color_total="$(color "$bar_color_total")"
4579+
fi
45804580
}
45814581

45824582
color() {

0 commit comments

Comments
 (0)