git: 9front

Download patch

ref: 33d139d113e354a89e044f9807fecaa74ff12a04
parent: 0febde04f5a990c0e41508f7d6dad5bf45acc982
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jul 17 20:43:05 EDT 2023

merge3: overlap happens on the source offsets, not the dest offsets

--- a/sys/src/cmd/diff/merge3.c
+++ b/sys/src/cmd/diff/merge3.c
@@ -54,10 +54,10 @@
 {
 	if(l == nil || r == nil)
 		return 0;
-	if(l->a <= r->a)
-		return l->b >= r->a;
+	if(l->c <= r->c)
+		return l->d >= r->c;
 	else
-		return r->b >= l->a;
+		return r->d >= l->c;
 }
 
 char*
--