about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-10-30 14:04:30 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-10-30 14:04:30 +0000
commit176e0dc8217d97be260bdb8f38e7bd5ddeecdf95 (patch)
tree3ac7002f4e39aed25a74887a31a4f081efa8ec59 /Src
parent2c16d989ba6912ec3feb5941e2c96a94200b881f (diff)
downloadzsh-176e0dc8217d97be260bdb8f38e7bd5ddeecdf95.tar.gz
zsh-176e0dc8217d97be260bdb8f38e7bd5ddeecdf95.tar.xz
zsh-176e0dc8217d97be260bdb8f38e7bd5ddeecdf95.zip
25963: Interrupt at spell check prompt output garbage
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c3
1 files changed, 2 insertions, 1 deletions
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);