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

    Use `save-excursion' before fontifying.
---
 context-coloring.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/context-coloring.el b/context-coloring.el
index cc9f909..d0579d1 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -161,7 +161,8 @@ END (exclusive) with the face corresponding to LEVEL."
 
 (defsubst context-coloring-maybe-colorize-comments-and-strings ()
   (when context-coloring-comments-and-strings
-    (font-lock-fontify-syntactically-region (point-min) (point-max))))
+    (save-excursion
+      (font-lock-fontify-syntactically-region (point-min) (point-max)))))
 
 
 ;;; js2-mode colorization

Reply via email to