* lisp/bookmark.el (bookmark-bmenu-goto-bookmark): Don't inf-loop.
Fixes: debbugs:20212
This commit is contained in:
parent
beaab89896
commit
62e7506081
1 changed files with 2 additions and 1 deletions
|
@ -2064,7 +2064,8 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\
|
|||
(defun bookmark-bmenu-goto-bookmark (name)
|
||||
"Move point to bookmark with name NAME."
|
||||
(goto-char (point-min))
|
||||
(while (not (equal name (bookmark-bmenu-bookmark)))
|
||||
(while (not (or (equal name (bookmark-bmenu-bookmark))
|
||||
(eobp)))
|
||||
(forward-line 1))
|
||||
(forward-line 0))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue