summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/cider-util.el b/cider-util.el
index 8c3896b3..d2662ca5 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -213,8 +213,9 @@ PROP is the name of a text property."
#'font-lock-flush
(with-no-warnings
(lambda (&optional beg end)
- (font-lock-fontify-region (or beg (point-min))
- (or end (point-max)))))))
+ (save-excursion
+ (font-lock-fontify-region (or beg (point-min))
+ (or end (point-max))))))))
(defvar cider--mode-buffers nil
"A list of buffers for different major modes.")