branch: scratch/add-vdiff
commit dc7a5e22aefca966800f710b7ae9eebb26c651f2
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
Add a comment on line-map structure
---
vdiff.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vdiff.el b/vdiff.el
index d3261bd..d7edc74 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -644,6 +644,7 @@ changes under point or on the immediately preceding line."
(car b-lines)))
(b-len (1+ (- b-end b-beg))))
(cond ((string= code "d")
+ ;; (list line-a line-b a-starts-sub b-starts-sub full-entry)
(push (list (1- a-beg) b-beg nil t entry) new-map)
(push (list (1+ a-end) (1+ b-end) nil nil entry) new-map))
((string= code "a")
@@ -657,7 +658,6 @@ changes under point or on the immediately preceding line."
(push (list (1- a-beg) (1- b-beg) nil nil entry) new-map)
(push (list a-end (+ b-beg a-len) t nil entry) new-map)
(push (list (1+ a-end) (1+ b-end) nil nil entry) new-map))
-
(t
(push (list (1- a-beg) (1- b-beg) nil nil entry) new-map)
(push (list (1+ a-end) (1+ b-end) nil nil entry) new-map)))))