summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-14 15:49:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-14 15:49:44 +0000
commit7e0543c95bf3c9f63403ac41fc18d0c109b9d9c1 (patch)
tree30188d80011c98e56a4b5b5dae52969299be4328 /term.c
parent36612897332d39fea86a5e0ec1013a54aed57a32 (diff)
downloadmandoc-7e0543c95bf3c9f63403ac41fc18d0c109b9d9c1.tar.gz
mandoc-7e0543c95bf3c9f63403ac41fc18d0c109b9d9c1.tar.zst
mandoc-7e0543c95bf3c9f63403ac41fc18d0c109b9d9c1.zip
Cleaned up arg_width and arg_column functions.
Added XXn and XXm support to -offset (not documented in mdoc.samples, but used in mdoc.samples!). Lint warnings fixed.
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 973ad2c2..9684cb3b 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.84 2009/07/14 15:16:41 kristaps Exp $ */
+/* $Id: term.c,v 1.85 2009/07/14 15:49:44 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -315,7 +315,7 @@ term_flushln(struct termp *p)
putchar(' ');
}
if (TERMP_HANG & p->flags)
- sv = vis - maxvis;
+ sv = (int)(vis - maxvis);
p->col = 0;
return;
}