mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-24 19:03:29 +00:00
* 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).
This commit is contained in:
parent
a2f07cd282
commit
f4d79bd021
@ -1,3 +1,8 @@
|
||||
2012-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* 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).
|
||||
|
||||
2012-12-19 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user