=================================================================== RCS file: /cvs/mandoc/man_term.c,v retrieving revision 1.190 retrieving revision 1.191 diff -u -p -r1.190 -r1.191 --- mandoc/man_term.c 2017/02/11 21:49:50 1.190 +++ mandoc/man_term.c 2017/02/15 14:10:08 1.191 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.190 2017/02/11 21:49:50 schwarze Exp $ */ +/* $Id: man_term.c,v 1.191 2017/02/15 14:10:08 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze @@ -822,7 +822,7 @@ pre_SH(DECL_ARGS) do { n = n->prev; - } while (n != NULL && n->tok < MAN_MAX && + } while (n != NULL && n->tok != TOKEN_NONE && termacts[n->tok].flags & MAN_NOTEXT); if (n == NULL || (n->tok == MAN_SH && n->body->child == NULL)) break;