Do not count git markers as "deleted lines"
* lisp/vc/diff-mode.el (diff-fixup-modifs): Skip "end of patch" markers that `git-format-patch` leaves around (bug#50761).
This commit is contained in:
parent
66d1513762
commit
150fc9c845
1 changed files with 5 additions and 1 deletions
|
@ -1355,7 +1355,11 @@ else cover the whole buffer."
|
|||
(pcase (char-after)
|
||||
(?\s (cl-incf space))
|
||||
(?+ (cl-incf plus))
|
||||
(?- (cl-incf minus))
|
||||
(?- (unless ;; In git format-patch "^-- $" signifies
|
||||
;; the end of the patch.
|
||||
(and (eq diff-buffer-type 'git)
|
||||
(looking-at "^-- $"))
|
||||
(cl-incf minus)))
|
||||
(?! (cl-incf bang))
|
||||
((or ?\\ ?#) nil)
|
||||
(?\n (if diff-valid-unified-empty-line
|
||||
|
|
Loading…
Add table
Reference in a new issue