From e842d7f29ac6a42e44065a94623b36b2dcbb81eb Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 16 Oct 2021 10:10:06 +0300 Subject: [PATCH] Fix removal of fringe indication of bookmarks * lisp/bookmark.el (bookmark--remove-fringe-mark): Fix off-by-one error in looking for bookmark-related overlays. (Bug#51233) --- lisp/bookmark.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index d64966df5af..fb90f01456e 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -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)))))))))) -- 2.39.2