Commit 06cdc95c authored by Nicolas Richard's avatar Nicolas Richard

* lisp/battery.el (battery-upower): Produce an empty string if level is nil

parent 0a22747c
Pipeline #5060 failed with stage
in 65 minutes and 18 seconds
......@@ -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 "")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment