emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 e842d7f: Fix removal of fringe indication of bookmarks


From: Eli Zaretskii
Subject: emacs-28 e842d7f: Fix removal of fringe indication of bookmarks
Date: Sat, 16 Oct 2021 03:11:21 -0400 (EDT)

branch: emacs-28
commit e842d7f29ac6a42e44065a94623b36b2dcbb81eb
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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 d64966d..fb90f01 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))))))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]