shithub: Nail

Download patch

ref: a30b92b8f68d91fbda3e01f47a6bb565ce87c27d
parent: 054becb7f8864898c8ba1a7086914b86d1be1184
author: Ori Bernstein <[email protected]>
date: Tue Mar 23 11:56:55 EDT 2021

fix state zapping

--- a/mbox.c
+++ b/mbox.c
@@ -144,7 +144,7 @@
 				break;
 			o += p->child[i]->nsub + 1;
 		}
-		if(!(p->state & Sdummy)){
+		if(!(p->state & (Sdummy|Szap))){
 			o++;
 			d++;
 		}
@@ -157,7 +157,7 @@
 			break;
 		if(m->state & Stoplev){
 			n += mbox.mesg[i]->nsub;
-			if(!(m->state & Sdummy))
+			if(!(m->state & (Sdummy|Szap)))
 				n++;
 		}