changeset 32482:3e97369732ac

(diff-find-file-name): Fix regexp.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 15 Oct 2000 04:49:55 +0000
parents 4372fcfffc7f
children 09a7b2ac5750
files lisp/diff-mode.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/diff-mode.el	Sun Oct 15 04:49:20 2000 +0000
+++ b/lisp/diff-mode.el	Sun Oct 15 04:49:55 2000 +0000
@@ -4,7 +4,7 @@
 
 ;; Author: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: patch diff
-;; Revision: $Id: diff-mode.el,v 1.27 2000/10/03 18:36:36 monnier Exp $
+;; Revision: $Id: diff-mode.el,v 1.28 2000/10/04 21:29:59 miles Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -413,7 +413,7 @@
 		       (progn (diff-hunk-prev) (point))
 		     (error (point-min)))))
 	   (header-files
-	    (if (looking-at "[-*][-*][-*] \\(\\S-+\\)\\s-.*\n[-+][-+][-+] \\(\\S-+\\)\\s-.*$")
+	    (if (looking-at "[-*][-*][-*] \\(\\S-+\\)\\(\\s-.*\\)?\n[-+][-+][-+] \\(\\S-+\\)")
 		(list (if old (match-string 1) (match-string 2))
 		      (if old (match-string 2) (match-string 1)))
 	      (forward-line 1) nil))