summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index 0e97abc1..3d1db05a 100644
--- a/term.c
+++ b/term.c
@@ -1171,9 +1171,9 @@ termp_fn_pre(DECL_ARGS)
term_word(p, node->child->string);
p->flags &= ~ttypes[TTYPE_FUNC_NAME];
+ p->flags |= TERMP_NOSPACE;
term_word(p, "(");
- p->flags |= TERMP_NOSPACE;
for (n = node->child->next; n; n = n->next) {
p->flags |= ttypes[TTYPE_FUNC_ARG];
term_word(p, n->string);
@@ -1231,7 +1231,7 @@ termp_fa_pre(DECL_ARGS)
term_word(p, ",");
}
- if (node->next && node->next->tok == MDOC_Fa)
+ if (node->child && node->next && node->next->tok == MDOC_Fa)
term_word(p, ",");
return(0);