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

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

[elpa] scratch/add-vdiff 14abb75 078/258: Allow jumping to subtraction o


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 14abb75 078/258: Allow jumping to subtraction overlays
Date: Wed, 17 May 2017 08:13:26 -0400 (EDT)

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

    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

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