summaryrefslogtreecommitdiff
path: root/term/munge.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-03-01 14:28:16 +0000
committerThomas Bushnell <thomas@gnu.org>1999-03-01 14:28:16 +0000
commit3401822e859a77db7395d2674e91836cdef16e4f (patch)
tree5467a018864ff5473b1bacdbc68e3487ce78bb06 /term/munge.c
parentb1c3ea9e3196d1c5cfab45dd23ad24708b4ef876 (diff)
Mon Mar 1 09:11:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
* munge.c (output_width): If C is a tab, then the width is the offset from LOC, not the total final position of the tab. Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi).
Diffstat (limited to 'term/munge.c')
-rw-r--r--term/munge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term/munge.c b/term/munge.c
index f9cb5d72..8b3ea40b 100644
--- a/term/munge.c
+++ b/term/munge.c
@@ -135,7 +135,7 @@ output_width (int c, int loc)
int n = loc + 1;
while (n % 8)
n++;
- return n;
+ return n - loc;
}
if ((c >= ' ') && (c < '\177'))
return 1;