emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-goggles 690dd7aba3 165/225: Pulse only if the face de


From: ELPA Syncer
Subject: [nongnu] elpa/evil-goggles 690dd7aba3 165/225: Pulse only if the face defines a background
Date: Wed, 12 Jan 2022 08:59:05 -0500 (EST)

branch: elpa/evil-goggles
commit 690dd7aba3e0fd5a14d39d64639c453da07840cf
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>

    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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]