summaryrefslogtreecommitdiff
path: root/lisp/hl-line.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-03-22 15:56:14 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-03-22 15:56:14 +0100
commit9b47ccd72e107ee43fcd62362e7580dcfa50d008 (patch)
tree7f40b825c62cb1372283b4ce51f46359da46ac97 /lisp/hl-line.el
parent46daf70c4a7ce208ab0b3a7893c042fed5f022c2 (diff)
downloademacs-9b47ccd72e107ee43fcd62362e7580dcfa50d008.tar.gz
Revert "Fix dependency problem in hl-line-sticky-flag"
This reverts commit 46daf70c4a7ce208ab0b3a7893c042fed5f022c2. This is fixed differently in a subsequent patch.
Diffstat (limited to 'lisp/hl-line.el')
-rw-r--r--lisp/hl-line.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/hl-line.el b/lisp/hl-line.el
index 8c6b499f11d..70ba0fcfc28 100644
--- a/lisp/hl-line.el
+++ b/lisp/hl-line.el
@@ -75,9 +75,7 @@
(dolist (buffer (buffer-list))
(unless (eq buffer selected)
(with-current-buffer buffer
- (when hl-line--overlay
- (delete-overlay hl-line--overlay)
- (setq hl-line--overlay nil)))))))))
+ (hl-line-unhighlight))))))))
(defcustom hl-line-overlay-priority -50
"Priority used on the overlay used by hl-line."