shithub: Nail

Download patch

ref: aa2e8a1e937c979068dda861aa3dbef11380a369
parent: 9a4891a5a4bbc409bc271dd4d8272dd810c06625
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 5 18:24:41 EST 2020

correct line number for in-thread messages under dummy

--- a/mbox.c
+++ b/mbox.c
@@ -133,8 +133,10 @@
 	}
 	while(r->parent != nil){
 		r = r->parent;
-		o++;
-		d++;
+		if(!(r->flags & Fdummy)){
+			o++;
+			d++;
+		}
 	}
 	for(i = 0; i < mbox.nmesg; i++){
 		m = mbox.mesg[i];
@@ -607,7 +609,7 @@
 	Mesg *m;
 	int i;
 
-	bfd = bwinopen(&mbox, "body", OWRITE);
+	bfd = bwinopen(&mbox, "data", OWRITE);
 	for(i = 0; i < mbox.nmesg; i++){
 		m = mbox.mesg[i];
 		if(mbox.view == Vflat || m->flags & (Fdummy|Ftoplev))