]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Fix dependency problem in hl-line-sticky-flag"
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 22 Mar 2022 14:56:14 +0000 (15:56 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 22 Mar 2022 14:56:14 +0000 (15:56 +0100)
This reverts commit 46daf70c4a7ce208ab0b3a7893c042fed5f022c2.

This is fixed differently in a subsequent patch.

lisp/hl-line.el

index 8c6b499f11db0ea902a589f05002a9b4f742b3b4..70ba0fcfc286d3b55baabebf02d059c6058dde7e 100644 (file)
@@ -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."