mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* lisp/vc/diff-mode.el (diff-revert-and-kill-hunk): Fix finding END.
This commit is contained in:
parent
5e7a71d0f4
commit
022facd986
1 changed files with 2 additions and 1 deletions
|
|
@ -2304,7 +2304,8 @@ BEG and END."
|
||||||
(goto-char beg)
|
(goto-char beg)
|
||||||
(setq beg (car (diff-bounds-of-hunk)))
|
(setq beg (car (diff-bounds-of-hunk)))
|
||||||
(goto-char end)
|
(goto-char end)
|
||||||
(setq end (cadr (diff-bounds-of-hunk))))
|
(unless (looking-at diff-hunk-header-re)
|
||||||
|
(setq end (cadr (diff-bounds-of-hunk)))))
|
||||||
(pcase-setq `(,beg ,end) (diff-bounds-of-hunk)))
|
(pcase-setq `(,beg ,end) (diff-bounds-of-hunk)))
|
||||||
(when (null (diff-apply-buffer beg end t))
|
(when (null (diff-apply-buffer beg end t))
|
||||||
;; Use `diff-hunk-kill' because it properly handles file headers.
|
;; Use `diff-hunk-kill' because it properly handles file headers.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue