shithub: Nail

Download patch

ref: 00e1b4c15f73aff327d590f4b7eb0f7f50700880
parent: aa2e8a1e937c979068dda861aa3dbef11380a369
author: Ori Bernstein <[email protected]>
date: Thu Nov 5 18:29:53 EST 2020

add 'Redraw' command for refreshing garbled mailboxes

--- a/mbox.c
+++ b/mbox.c
@@ -697,6 +697,13 @@
 	}
 }
 
+static void
+redraw(char **, int)
+{
+	fprint(mbox.addr, ",");
+	showlist();
+}
+
 Fn mboxfn[] = {
 	{"Put",	mbflush},
 	{"Delmesg", delmesg},
@@ -703,9 +710,9 @@
 	{"Undelmesg", undelmesg},
 	{"Mark", mbmarkmesg},
 	{"Del", quitall},
+	{"Redraw", redraw},
 #ifdef NOTYET
 	{"Next", nextunread},
-	{"Redisplay", redisplay},
 	{"Filter", filter},
 	{"Get", mbrefresh},
 #endif