branch: elpa/eglot-inactive-regions
commit 903d76384443b4acc92fbd4e19ad648929e16785
Author: Filippo Argiolas <filippo.argio...@gmail.com>
Commit: Filippo Argiolas <filippo.argio...@gmail.com>

    next-single-property-change already supports limits
    
    No need to bake my own clamping for next-single-property-change as it
    already supports it built-in. Thanks to Stefan Monnier for noticing.
---
 eglot-inactive-regions.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eglot-inactive-regions.el b/eglot-inactive-regions.el
index bd459d3317..713a62a1bc 100644
--- a/eglot-inactive-regions.el
+++ b/eglot-inactive-regions.el
@@ -241,7 +241,7 @@ If the correspondend \"eglot-inactive\" face doesn't not 
exist yet create it."
           (save-excursion
             (goto-char from)
             (while (< (point) to)
-              (goto-char (min to (or (next-single-property-change (point) 
'face) to)))
+              (goto-char (next-single-property-change (point) 'face nil to))
               (let* ((cur-face (eglot-inactive-regions--get-face (1- (point))))
                      (eglot-inactive-face 
(eglot-inactive-regions--make-darken-face cur-face))
                      (ov (make-overlay from (point))))

Reply via email to