]> git.eshelyaron.com Git - emacs.git/commitdiff
whitespace: Reset `whitespace-buffer-changed' when refontifying
authorRichard Hansen <rhansen@rhansen.org>
Wed, 22 Jun 2022 21:29:39 +0000 (17:29 -0400)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 11 Sep 2022 11:46:30 +0000 (13:46 +0200)
* lisp/whitespace.el (whitespace-post-command-hook): Add missing reset
of `whitespace-buffer-changed' back to nil between commands.

lisp/whitespace.el

index 57c22146956d5b6f7641cfe58e44fd4f33fa9277..4a8117b75e074cecd468f2a24435d85f47561db3 100644 (file)
@@ -2292,6 +2292,7 @@ buffer."
 Also refontify when necessary."
   (unless (and (eq whitespace-point (point))
                (not whitespace-buffer-changed))
+    (setq-local whitespace-buffer-changed nil)
     (setq whitespace-point (point))    ; current point position
     (let ((refontify
            (cond