From f96669e0a4a905cc857db389bf4c6b2d8382f3a5 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 14 Mar 2022 08:27:31 -0400 Subject: [PATCH] * lisp/simple.el (cursor-face-highlight-mode): Fix copy&paste --- lisp/simple.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 5768fb3c956..a91895907d2 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6572,8 +6572,8 @@ is set to the buffer displayed in that window.") (if cursor-face-highlight-mode (add-hook 'pre-redisplay-functions #'redisplay--update-cursor-face-highlight nil t) - (add-hook 'pre-redisplay-functions - #'redisplay--update-cursor-face-highlight t))) + (remove-hook 'pre-redisplay-functions + #'redisplay--update-cursor-face-highlight t))) (defun redisplay--pre-redisplay-functions (windows) (with-demoted-errors "redisplay--pre-redisplay-functions: %S" -- 2.39.2