diff options
author | Juri Linkov <juri@linkov.net> | 2018-12-19 23:55:32 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2018-12-19 23:55:32 +0200 |
commit | 3a1d7227c24f59668dd0ed24527485d4010de2cb (patch) | |
tree | 9d71d5a2ac01257d55b6e6d956228ad3ffc27dd2 /lisp | |
parent | 5bd6074415e8d572931ee51112d9b70b70e2ba55 (diff) | |
download | emacs-3a1d7227c24f59668dd0ed24527485d4010de2cb.tar.gz emacs-3a1d7227c24f59668dd0ed24527485d4010de2cb.tar.bz2 emacs-3a1d7227c24f59668dd0ed24527485d4010de2cb.zip |
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure
unconditionally. (Bug#33798)
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/vc/diff-mode.el | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 043d22d14b3..dd3a04b4e75 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2525,14 +2525,7 @@ hunk text is not found in the source file." (when (and beg end) (goto-char beg) - (if file - ;; In a temporary or cached buffer - (when (text-property-not-all beg end 'fontified t) - (save-excursion - (font-lock-fontify-region beg end) - (put-text-property beg end 'fontified t))) - ;; In an existing buffer - (font-lock-ensure beg end)) + (font-lock-ensure beg end) (while (< (point) end) (let* ((bol (point)) |