Skip to content

Commit

Permalink
Use jit-lock-fontify-now instead of font-lock-fontify-region
Browse files Browse the repository at this point in the history
  • Loading branch information
tlikonen committed Jun 5, 2013
1 parent d524dbd commit 2e4827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wcheck-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ areas, including invisible ones. Otherwise skip invisible text."

(when font-lock-mode
(save-excursion
(font-lock-fontify-region (min beg end) (max beg end))))
(jit-lock-fontify-now (min beg end) (max beg end))))

(wcheck-with-language-data
(language (wcheck-buffer-data-get :buffer buffer :language))
Expand Down

0 comments on commit 2e4827b

Please sign in to comment.