diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-18 04:05:42 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-18 04:05:42 +0000 |
commit | d794cc9e7bf2288db67969abe3cdd7ae1b8e56fc (patch) | |
tree | 90537486bbdc7c57395881063b4b60b81d9de941 /term | |
parent | bd7f175b255c4f181131d90da8bdc9a3734ef6d7 (diff) |
2001-12-17 Roland McGrath <roland@frob.com>
* munge.c (input_character): Fix DISCARD character handling
so it doesn't process the character as plain input.
Diffstat (limited to 'term')
-rw-r--r-- | term/munge.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; } |