]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-make-unified): Fix regexp.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 May 2004 18:41:32 +0000 (18:41 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 May 2004 18:41:32 +0000 (18:41 +0000)
lisp/diff-mode.el

index e95ac7422fe4a4495382fd801030dbc0883c2577..9b00eae050d99fe958d9339fbb3e4c82a6b02c7a 100644 (file)
@@ -976,7 +976,7 @@ a diff with \\[diff-reverse-direction]."
   "Turn context diffs into unified diffs if applicable."
   (if (save-excursion
        (goto-char (point-min))
-       (looking-at "\\*\\*\\* "))
+       (and (looking-at diff-hunk-header-re) (eq (char-after) ?*)))
       (let ((mod (buffer-modified-p)))
        (unwind-protect
            (diff-context->unified (point-min) (point-max))