diff options
-rw-r--r-- | lisp/battery.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/battery.el b/lisp/battery.el index 7027b254480..d441f1597ce 100644 --- a/lisp/battery.el +++ b/lisp/battery.el @@ -656,7 +656,8 @@ The following %-sequences are provided: (cons ?B (if state (cdr (assq state battery-upower-states)) "unknown")) - (cons ?b (cond ((= level 3) "-") + (cons ?b (cond ((not level) "") + ((= level 3) "-") ((= level 4) "!") (online-p "+") (t ""))) |