=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_term.c,v retrieving revision 1.142 retrieving revision 1.143 diff -c -r1.142 -r1.143 *** src/usr.bin/mandoc/man_term.c 2017/02/04 11:56:48 1.142 --- src/usr.bin/mandoc/man_term.c 2017/02/11 21:49:43 1.143 *************** *** 1,4 **** ! /* $OpenBSD: man_term.c,v 1.142 2017/02/04 11:56:48 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: man_term.c,v 1.143 2017/02/11 21:49:43 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze *************** *** 820,826 **** do { n = n->prev; ! } while (n != NULL && termacts[n->tok].flags & MAN_NOTEXT); if (n == NULL || (n->tok == MAN_SH && n->body->child == NULL)) break; --- 820,827 ---- do { n = n->prev; ! } while (n != NULL && n->tok < MAN_MAX && ! termacts[n->tok].flags & MAN_NOTEXT); if (n == NULL || (n->tok == MAN_SH && n->body->child == NULL)) break;