aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2015-08-15 18:00:57 +0200
committerJonas Bernoulli <jonas@bernoul.li>2015-08-15 18:00:57 +0200
commit36be43de9acfa0a2f0c1db8ebab582532e00e13e (patch)
tree0047d46703a22848dfc3cae95f2418a18a9ea77f /lisp
parent1ad30a8dc02cb3872c2fb869b01b7c3403c42a81 (diff)
use font-lock-flush instead of font-lock-ensure
The latter does not actually refresh the buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/git-commit.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index c5a7910..f8b03b4 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -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)))