emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] scratch/add-vdiff 697bb79 060/258: Prefer last element of multipl


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 697bb79 060/258: Prefer last element of multiple in line map
Date: Wed, 17 May 2017 08:13:23 -0400 (EDT)

branch: scratch/add-vdiff
commit 697bb792275b4be522953c6cd255fb3e1255c741
Author: justbur <address@hidden>
Commit: justbur <address@hidden>

    Prefer last element of multiple in line map
    
    The end of subtractions have two elements associated with them the last
    of which is the "post" element.
---
 vdiff.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vdiff.el b/vdiff.el
index cefe87b..c82be15 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -648,10 +648,8 @@ changes under point or on the immediately preceding line."
               (dolist (entry vdiff--line-map)
                 (let ((map-line
                        (if B-to-A (cadr entry) (car entry))))
-                  (cond ((< map-line line)
+                  (cond ((<= map-line line)
                          (setq prev-entry entry))
-                        ((= map-line line)
-                         (throw 'closest entry))
                         (t
                          (throw 'closest prev-entry)))))
               (throw 'closest prev-entry))))



reply via email to

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