Commit Diff


commit - e502498f6e1235fd40bf837d9389b41025ff5d5d
commit + 74aa03b4ed1f95ccb2ef2b70f63162e47cb3d4b4
blob - a5f15156a29a442b0e07bf31164d61f2515d5aab
blob + 1e13ab2d3143a9449645fb93ec757437fe3a8681
--- bedstatus/bedstatus.c
+++ bedstatus/bedstatus.c
@@ -129,7 +129,7 @@ static void format_bat (const struct status *st)
 
 	append ("[BAT ");
 
-	if (!st->has_bat_charging && st->has_bat_perc) {
+	if (st->has_bat_perc && (!st->has_bat_charging || !st->bat_charging)) {
 		if (st->bat_perc < 25) {
 			append (SYM_BAT_EMPTY);
 		} else if (st->bat_perc < 50) {