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

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

[elpa] scratch/add-vdiff 3fcf4b9 101/258: Fix sign problem in adding hun


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 3fcf4b9 101/258: Fix sign problem in adding hunk overlays
Date: Wed, 17 May 2017 08:13:30 -0400 (EDT)

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

    Fix sign problem in adding hunk overlays
---
 vdiff.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vdiff.el b/vdiff.el
index a6b7f71..4cf45da 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -687,7 +687,7 @@ of a \"word\"."
              (and (not in-a) (string= code "d")))
          (vdiff--add-subtraction-overlay other-len))
         (t
-         (vdiff--add-hunk-overlay this-len nil (- this-len other-len)))))
+         (vdiff--add-hunk-overlay this-len nil (- other-len this-len)))))
 
 (defun vdiff--refresh-overlays ()
   "Delete and recreate overlays in both buffers."



reply via email to

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