summaryrefslogtreecommitdiffstats
path: root/usr.bin/vis/foldit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vis/foldit.c')
-rw-r--r--usr.bin/vis/foldit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/vis/foldit.c b/usr.bin/vis/foldit.c
index 6cf63f3..898e341 100644
--- a/usr.bin/vis/foldit.c
+++ b/usr.bin/vis/foldit.c
@@ -44,6 +44,7 @@ static const char rcsid[] =
int
foldit(chunk, col, max)
char *chunk;
+ int col, max;
{
register char *cp;
@@ -60,7 +61,7 @@ again:
col = 0;
break;
case '\t':
- col = col + 8 &~ 07;
+ col = (col + 8) &~ 07;
break;
case '\b':
col = col ? col - 1 : 0;
OpenPOWER on IntegriCloud