branch: scratch/add-vdiff
commit 3fcf4b905ca9a3d7e30541dcd1ea7a05b1a8518f
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
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."