summaryrefslogtreecommitdiff
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
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).
-rw-r--r--term/ChangeLog6
-rw-r--r--term/munge.c2
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;