]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (cursor-face-highlight-mode): Fix copy&paste
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 14 Mar 2022 12:27:31 +0000 (08:27 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 14 Mar 2022 12:27:31 +0000 (08:27 -0400)
lisp/simple.el

index 5768fb3c956187ab4dd94946b432055a62dd66ce..a91895907d244bc626300151ef2f42912e11d8bb 100644 (file)
@@ -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"