]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure
authorJuri Linkov <juri@linkov.net>
Wed, 19 Dec 2018 21:55:32 +0000 (23:55 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 19 Dec 2018 21:55:32 +0000 (23:55 +0200)
unconditionally.  (Bug#33798)

lisp/vc/diff-mode.el

index 043d22d14b33a85543f825123032cfcbb757a37c..dd3a04b4e75164f65190a4eefffefc2c647626b7 100644 (file)
@@ -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))