summaryrefslogtreecommitdiff
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-02-10 16:36:07 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-02-10 16:36:07 +0000
commitf060b622fb5bbae92d4d44f7d9d290070efff016 (patch)
tree143ac44f7bc41377f3a999eb418a6b5f7d895e04 /lisp/diff-mode.el
parent73dd622fb4648ce267acbaa15e1b57d64ddedb9f (diff)
downloademacs-f060b622fb5bbae92d4d44f7d9d290070efff016.tar.gz
(diff-beginning-of-file-and-junk): If we're on the
Index: line, don't search backward for the previous one.
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 4c566b344a9..6794fab11f8 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -489,6 +489,7 @@ data such as \"Index: ...\" and such."
(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)