diff lisp/diff-mode.el @ 80099:f68e2df975f5

(diff-beginning-of-file-and-junk): If we're on the Index: line, don't search backward for the previous one.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 10 Feb 2008 16:36:07 +0000
parents 8ac943071f87
children 533d83b5f687
line wrap: on
line diff
--- a/lisp/diff-mode.el	Sun Feb 10 14:04:01 2008 +0000
+++ b/lisp/diff-mode.el	Sun Feb 10 16:36:07 2008 +0000
@@ -489,6 +489,7 @@
       (diff-file-next)
       (setq file (point)))
     (let ((index (save-excursion
+                   (forward-line 1)  ;In case we're looking at "Index:".
                    (re-search-backward "^Index: " prevhunk t))))
       (when index (setq file index))
       (if (<= file start)