From d794cc9e7bf2288db67969abe3cdd7ae1b8e56fc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 18 Dec 2001 04:05:42 +0000 Subject: 2001-12-17 Roland McGrath * munge.c (input_character): Fix DISCARD character handling so it doesn't process the character as plain input. --- term/munge.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'term') diff --git a/term/munge.c b/term/munge.c index 8b3ea40b..34d2210a 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 - loc; + return n - loc; } if ((c >= ' ') && (c < '\177')) return 1; @@ -405,8 +405,10 @@ input_character (int c) else { drop_output (); + poutput (cc[VDISCARD]); termflags |= FLUSH_OUTPUT; } + goto alldone; } } @@ -714,7 +716,7 @@ create_queue (int size, int lowat, int hiwat) q = malloc (sizeof (struct queue) + size * sizeof (quoted_char)); assert (q); - + q->susp = 0; q->lowat = lowat; q->hiwat = hiwat; @@ -722,7 +724,7 @@ create_queue (int size, int lowat, int hiwat) q->arraylen = size; q->wait = malloc (sizeof (struct condition)); assert (q->wait); - + condition_init (q->wait); return q; } -- cgit v1.2.3