diff --git a/src/man/structure.c b/src/man/structure.c index 3ef82e34d..e65dc9d8b 100644 --- a/src/man/structure.c +++ b/src/man/structure.c @@ -111,6 +111,8 @@ int docstructure_add(docstructure* ds, const char* title, int line, if((addpath[z] = ds->curpath[z]) == UINT_MAX){ ds->curpath[z] = 0; addpath[z] = 0; + }else if(z == level){ + addpath[z] = ++ds->curpath[z]; } ++z; }