From 176e0dc8217d97be260bdb8f38e7bd5ddeecdf95 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 30 Oct 2008 14:04:30 +0000 Subject: 25963: Interrupt at spell check prompt output garbage --- Src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/utils.c b/Src/utils.c index ec2ae5f25..1dd8c3577 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2184,7 +2184,8 @@ getquery(char *valid_chars, int purge) } zbeep(); } - write(SHTTY, &c, 1); + if (c >= 0) + write(SHTTY, &c, 1); if (nl) write(SHTTY, "\n", 1); -- cgit 1.4.1