emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cd5b053: * lisp/vc/log-view.el (log-view-diff-commo


From: Juri Linkov
Subject: [Emacs-diffs] master cd5b053: * lisp/vc/log-view.el (log-view-diff-common): Use the previous revision
Date: Mon, 13 May 2019 16:40:18 -0400 (EDT)

branch: master
commit cd5b0538c5ba1b4bb243897de0e1dbea3fad0637
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * 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)
---
 lisp/vc/log-view.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/vc/log-view.el b/lisp/vc/log-view.el
index e47fad8..3389264 100644
--- a/lisp/vc/log-view.el
+++ b/lisp/vc/log-view.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]