branch: elpa/evil-goggles
commit 690dd7aba3e0fd5a14d39d64639c453da07840cf
Author: Evgeni Kolev <[email protected]>
Commit: Evgeni Kolev <[email protected]>
Pulse only if the face defines a background
---
evil-goggles.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index a779cd03b0..bfe31f7ab3 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -183,7 +183,9 @@ non-nil, else for `evil-goggles-duration' seconds."
DUR is used only when pulsing.
The overlay is pulsed if variable `evil-goggles-pulse' is t."
- (if evil-goggles-pulse
+ ;; pulsing requires a face with background, so don't pulse if the
+ ;; face defines no background
+ (if (and evil-goggles-pulse (face-background face))
(evil-goggles--pulse-overlay ov (evil-goggles--face-background face) dur)
(overlay-put ov 'face face)))