diff options
-rw-r--r-- | term/ChangeLog | 6 | ||||
-rw-r--r-- | term/munge.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/term/ChangeLog b/term/ChangeLog index d862fedd..0ddb8471 100644 --- a/term/ChangeLog +++ b/term/ChangeLog @@ -1,3 +1,9 @@ +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). + 1999-02-28 Roland McGrath <roland@baalperazim.frob.com> * 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; |