summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index dd77622a..d9d3b4d9 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -549,7 +549,7 @@ check_text(struct mdoc *m, int ln, int pos, char *p)
for (cp = p; NULL != (p = strchr(p, '\t')); p++) {
if (MDOC_LITERAL & m->flags)
continue;
- mdoc_pmsg(m, ln, (int)(p - cp), MANDOCERR_BADTAB);
+ mdoc_pmsg(m, ln, pos + (int)(p - cp), MANDOCERR_BADTAB);
}
}