branch: scratch/add-vdiff
commit 14abb75ae397765da1dfd3f76a91245a110a9733
Author: justbur <[email protected]>
Commit: justbur <[email protected]>

    Allow jumping to subtraction overlays
---
 vdiff.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vdiff.el b/vdiff.el
index 24926c7..ed20fd1 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -356,7 +356,7 @@ text on the first line, and the width of the buffer."
      'face 'vdiff-subtraction-face)))
 
 (defun vdiff--add-subtraction-overlay (n-lines)
-  (let* ((ovr (make-overlay (point) (point))))
+  (let* ((ovr (make-overlay (point) (1+ (point)))))
     (overlay-put ovr 'before-string (vdiff--make-subtraction-string n-lines))
     (overlay-put ovr 'vdiff-type 'subtraction)
     (overlay-put ovr 'vdiff t)

Reply via email to