Fix buffer menu unmark on first line (bug#80089)

* lisp/buff-menu.el (Buffer-menu-backup-unmark): Remove mark on
first line too.
This commit is contained in:
Manuel Giraud 2025-12-28 21:28:53 +01:00 committed by Juri Linkov
parent 62f50367ba
commit fd50808154

View file

@ -506,8 +506,7 @@ When called interactively prompt for MARK; RET remove all marks."
(forward-line -1)
(while (and (not (tabulated-list-get-id)) (not (bobp)))
(forward-line -1))
(unless (bobp)
(Buffer-menu--unmark)))
(if (tabulated-list-get-id) (Buffer-menu--unmark)))
(defun Buffer-menu--unmark ()
(tabulated-list-set-col 0 " " t)