Commit cd5b0538 authored by Juri Linkov's avatar Juri Linkov

* lisp/vc/log-view.el (log-view-diff-common): Use the previous revision

only when the end of the region is on a line after the last entry.
(Bug#35624)
parent f515bc63
Pipeline #1648 failed with stage
in 90 minutes and 2 seconds
......@@ -618,10 +618,11 @@ considered file(s)."
;; When TO and FR are the same, or when point is on a line after
;; the last entry, look at the previous revision.
(when (or (string-equal fr to)
(>= (point)
(>= end
(save-excursion
(goto-char (car fr-entry))
(forward-line))))
(goto-char end)
(log-view-end-of-defun)
(point))))
(setq fr (vc-call-backend log-view-vc-backend 'previous-revision nil fr)))
(vc-diff-internal
t (list log-view-vc-backend
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment