]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix removal of fringe indication of bookmarks
authorEli Zaretskii <eliz@gnu.org>
Sat, 16 Oct 2021 07:10:06 +0000 (10:10 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 16 Oct 2021 07:10:06 +0000 (10:10 +0300)
* lisp/bookmark.el (bookmark--remove-fringe-mark): Fix off-by-one
error in looking for bookmark-related overlays.  (Bug#51233)

lisp/bookmark.el

index d64966df5af25ea50bb165460bfdb0b63dad24b4..fb90f01456e4add8cfb76c8e6e4763695fc84db5 100644 (file)
@@ -479,7 +479,7 @@ See user option `bookmark-set-fringe'."
       (dolist (buf (buffer-list))
         (with-current-buffer buf
           (when (equal filename buffer-file-name)
-            (setq overlays (overlays-in pos pos))
+            (setq overlays (overlays-in pos (1+ pos)))
             (while (and (not found) (setq temp (pop overlays)))
               (when (eq 'bookmark (overlay-get temp 'category))
                 (delete-overlay (setq found temp))))))))))