From 3401822e859a77db7395d2674e91836cdef16e4f Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 1 Mar 1999 14:28:16 +0000 Subject: Mon Mar 1 09:11:06 1999 Thomas Bushnell, BSG * 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 + + * 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 * users.c (trivfs_S_io_revoke): Use ports_class_iterate. 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; -- cgit v1.2.3