shithub: Nail

Download patch

ref: 0bc32c98a7362dff162ba782323bfa68484545f3
parent: a58c69571a720a672fef0123afc03c28066d059a
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 5 12:48:34 EST 2020

highlight correct message, add undel to tag

--- a/mbox.c
+++ b/mbox.c
@@ -386,7 +386,7 @@
 	Bterm(bfd);
 
 	/* highlight the redrawn message */
-	fprint(mbox.addr, "%d%s", ln+1, add ? "-#0" : "");
+	fprint(mbox.addr, "%d%s", ln, add ? "-#0" : "");
 	fprint(mbox.ctl, "dot=addr\n");
 }
 
@@ -762,7 +762,7 @@
 
 	threadsetname("mbox %s", mbox.path);
 	wininit(&mbox, mbox.path);
-	wintagwrite(&mbox, "Put Mail Delmesg Save Next ");
+	wintagwrite(&mbox, "Put Mail Delmesg Undelmesg Save Next ");
 	showlist();
 	fprint(mbox.ctl, "clean\n");
 	proccreate(eventread, nil, Stack);