diff options
author | Michael Griffiths <mikey@cich.li> | 2016-03-04 16:21:39 +0000 |
---|---|---|
committer | Michael Griffiths <mikey@cich.li> | 2016-03-04 16:28:44 +0000 |
commit | 4a75039b7e651448045bea7ba40091e9aff995ff (patch) | |
tree | 6745a6770c99dfaa338a1367bc7643ba8b692ef1 /cider-util.el | |
parent | 0b64deb2a719ba50590cf24b68d78579115884b7 (diff) |
[Fix #1601] Use save-excursion in cider--font-lock-flush
Diffstat (limited to 'cider-util.el')
-rw-r--r-- | cider-util.el | 5 |
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.") |