branch: master
commit df12c795f168976efbc7178062759c66a735627f
Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>

    Fix regression where multiple timers would collide.
---
 context-coloring.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index 47ecf70..f048bb4 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -150,7 +150,8 @@ START, END and LENGTH are recorded for later use."
 
 (defun context-coloring-maybe-colorize-with-buffer (buffer)
   "Color BUFFER and if it has changed."
-  (when context-coloring-changed-p
+  (when (and (eq buffer (current-buffer))
+             context-coloring-changed-p)
     (context-coloring-colorize-with-buffer buffer)
     (setq context-coloring-changed-p nil)
     (setq context-coloring-changed-start nil)

Reply via email to