diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-12-19 14:41:43 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-12-19 14:41:43 -0500 |
commit | f4d79bd021831eb64e1bfc7f5c5b1ddb2138b37a (patch) | |
tree | 39877117ffe81015cab65eeed3728eef0a5fcb92 /lisp/vc/diff-mode.el | |
parent | a2f07cd28277fbcef42541509e3710a9863cac3a (diff) | |
download | emacs-f4d79bd021831eb64e1bfc7f5c5b1ddb2138b37a.tar.gz |
* lisp/vc/diff-mode.el (diff-post-command-hook): Don't ignore changes at the
very beginning of a hunk (e.g. killing the first line).
Diffstat (limited to 'lisp/vc/diff-mode.el')
-rw-r--r-- | lisp/vc/diff-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 0c023b0f7f4..edd209a7910 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -1298,7 +1298,7 @@ See `after-change-functions' for the meaning of BEG, END and LEN." (re-search-forward diff-context-mid-hunk-header-re nil t))))) (when (and ;; Don't try to fixup changes in the hunk header. - (> (car diff-unhandled-changes) start) + (>= (car diff-unhandled-changes) start) ;; Don't try to fixup changes in the mid-hunk header either. (or (not mid) (< (cdr diff-unhandled-changes) (match-beginning 0)) |