branch: elpa/htmlize
commit 63a38cdf102464acf3f89dd22c02759661c7a196
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    htmlize-next-face-change: Use more appropriate conditional
    
    This is about a side-effect; the returned value is not used.
---
 htmlize.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htmlize.el b/htmlize.el
index 35af03cbab..f253026d6a 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -350,8 +350,8 @@ 
https://www.iana.org/assignments/media-types/media-types.xhtml#image";)
   ;; overlays that specify the `face' property, even when they
   ;; contain smaller text properties that also specify `face'.
   ;; Emacs display engine merges those faces, and so must we.
-  (or limit
-      (setq limit (point-max)))
+  (unless limit
+    (setq limit (point-max)))
   (let ((next-prop (next-single-property-change pos 'face nil limit))
         (overlay-faces (htmlize-overlay-faces-at pos)))
     (while (progn

Reply via email to