From: Ingo Schwarze Date: Wed, 2 Jul 2014 08:21:39 +0000 (+0000) Subject: Fix the column numbers associated with in_line_argn() macros; X-Git-Tag: VERSION_1_13_1~123 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/6c161f30c252bf65b27ce98eb9c96681bb45f27e?ds=inline Fix the column numbers associated with in_line_argn() macros; this bug is more than four years old, introduced by kristaps@ in mdocml.bsd.lv rev. 1.46, March 30, 2010. --- diff --git a/mdoc_macro.c b/mdoc_macro.c index f16572d4..c662990d 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.132 2014/07/02 03:48:07 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.133 2014/07/02 08:21:39 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013 Ingo Schwarze @@ -1573,7 +1573,7 @@ in_line_argn(MACRO_PROT_ARGS) return(0); continue; } else if (0 == j) - if ( ! mdoc_elem_alloc(mdoc, line, la, tok, arg)) + if ( ! mdoc_elem_alloc(mdoc, line, ppos, tok, arg)) return(0); if (j == maxargs && ! flushed) { @@ -1609,7 +1609,7 @@ in_line_argn(MACRO_PROT_ARGS) j++; } - if (0 == j && ! mdoc_elem_alloc(mdoc, line, la, tok, arg)) + if (0 == j && ! mdoc_elem_alloc(mdoc, line, ppos, tok, arg)) return(0); /* Close out in a consistent state. */