branch: master
commit 933b4fe883981e1e12bdc313a52adf3b904c4e40
Author: Lars Ingebrigtsen <la...@gnus.org>
Commit: Lars Ingebrigtsen <la...@gnus.org>

    Fix problem with overlay extending to the end of the buffer
    
    * packages/minimap/minimap.el (minimap-enlarge-faces): The overlay
    may extend to the end of the buffer (bug#28634).
---
 packages/minimap/minimap.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/minimap/minimap.el b/packages/minimap/minimap.el
index 231c049..e6f2b72 100644
--- a/packages/minimap/minimap.el
+++ b/packages/minimap/minimap.el
@@ -768,7 +768,7 @@ You can specify those properties with
        (with-current-buffer minimap-buffer-name
          (setq ov
                (make-overlay pos
-                             (setq pos (next-single-property-change pos 
'face))))
+                             (setq pos (or (next-single-property-change pos 
'face) pos))))
          (overlay-put ov 'face `(:family ,(face-font 'default)))
          (overlay-put ov 'priority 5)))
       (setq pos (next-single-property-change pos 'face)))))

Reply via email to