Skip to content

Commit

Permalink
use font-lock-flush instead of font-lock-ensure
Browse files Browse the repository at this point in the history
The latter does not actually refresh the buffer.
  • Loading branch information
tarsius committed Aug 15, 2015
1 parent 1ad30a8 commit 36be43d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/git-commit.el
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ With a numeric prefix ARG, go forward ARG comments."
(delete-region (point) (point-max)))))
(diff-mode)
(let (font-lock-verbose font-lock-support-mode)
(if (fboundp 'font-lock-ensure)
(font-lock-ensure)
(if (fboundp 'font-lock-flush)
(font-lock-flush)
(with-no-warnings
(font-lock-fontify-buffer))))
(let (next (pos (point-min)))
Expand Down

0 comments on commit 36be43d

Please sign in to comment.