ref: 8fb05d3ff38994f053a47b0977b54702366d1d94
parent: df047110e8f44bead962269dbfca2062bceb18f4
author: Ori Bernstein <[email protected]>
date: Sat Nov 14 10:20:02 EST 2020
height computation: fix order of operations.
--- a/mbox.c
+++ b/mbox.c
@@ -669,7 +669,9 @@
/* Bump whole thread up in list */
if(r->nsub > 0){
ln = mesglineno(r, nil);
- nr = r->nsub + (r->state & Sdummy) ? 0 : 1;
+ nr = r->nsub;
+ if(!(r->state & Sdummy))
+ nr++;
assert(nr > 0);
fprint(mbox.addr, "%d,%d", ln, ln+nr-1);
write(mbox.data, "", 0);