1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix dependency problem in hl-line-sticky-flag

* lisp/hl-line.el (hl-line-sticky-flag): Open-code
hl-line-unhighlight to avoid recursive dependencies (bug#54481).
This commit is contained in:
Lars Ingebrigtsen 2022-03-22 15:35:05 +01:00
parent 656c2dd66e
commit 46daf70c4a

View file

@ -75,7 +75,9 @@
(dolist (buffer (buffer-list))
(unless (eq buffer selected)
(with-current-buffer buffer
(hl-line-unhighlight))))))))
(when hl-line--overlay
(delete-overlay hl-line--overlay)
(setq hl-line--overlay nil)))))))))
(defcustom hl-line-overlay-priority -50
"Priority used on the overlay used by hl-line."