mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
acme/Mail: correct message line number for partially hidden threads
This commit is contained in:
parent
f86cc3e912
commit
eff4b93652
1 changed files with 5 additions and 2 deletions
|
@ -159,8 +159,9 @@ nsub(Mesg *m)
|
|||
n = 0;
|
||||
for(i = 0; i < m->nchild; i++){
|
||||
c = m->child[i];
|
||||
n += nsub(c);
|
||||
if(!(c->state & (Sdummy|Shide)))
|
||||
n += nsub(c)+1;
|
||||
n++;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
@ -183,7 +184,9 @@ mesglineno(Mesg *msg, int *depth)
|
|||
for(i = 0; i < p->nchild; i++){
|
||||
if(p->child[i] == m)
|
||||
break;
|
||||
o += nsub(p->child[i]) + 1;
|
||||
o += nsub(p->child[i]);
|
||||
if(!(p->state & (Sdummy|Shide)))
|
||||
o++;
|
||||
}
|
||||
if(!(p->state & (Sdummy|Shide))){
|
||||
o++;
|
||||
|
|
Loading…
Reference in a new issue