we still expect more lines.
+2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * diff-mode.el (diff-sanity-check-hunk): Only accept an empty line if
+ we still expect more lines.
+
2008-02-28 Juri Linkov <juri@jurta.org>
* startup.el (normal-splash-screen): Add argument `concise'.
(cond
((and diff-valid-unified-empty-line
;; Not just (eolp) so we don't infloop at eob.
- (eq (char-after) ?\n))
+ (eq (char-after) ?\n)
+ (> before 0) (> after 0))
(decf before) (decf after) t)
((and (zerop before) (zerop after)) nil)
((or (< before 0) (< after 0))