From 60a02b4792a5cdfe241ca63441d14b57945d4137 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 5 Jun 2017 03:12:06 +0200 Subject: [PATCH] Fix lingering hl-line overlays --- core/core-ui.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-ui.el b/core/core-ui.el index 3472aa701..dae012601 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -211,6 +211,10 @@ file." (setq hl-line-sticky-flag nil global-hl-line-sticky-flag nil) + ;; Fix lingering hl-line overlays + (add-hook! 'hl-line-mode-hook + (remove-overlays (point-min) (point-max) 'face 'hl-line)) + ;; Acts & looks weird with evil visual mode, so disable it temporarily (defun doom|hl-line-off () (hl-line-mode -1)) (after! evil