Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: 3.1.5*: Re: [bug] Resizing an xterm while zsh queries the user



Vincent Lefevre wrote:
> It doesn't work very well. For instance:
> 
> $ echo blaj
> zsh: correct 'blaj' to 'blah' [nyae]?
> 
> If I type Ctrl-C, it displays:
> 
> zsh: correct 'blaj' to 'blah' [nyae]? ^C
> 
> but still waits for a character. Then, if I type "y", it displays nothing
> and "echo " goes to the history.

Sorry, I missed that.

--- Src/utils.c.err	Fri Feb  5 13:59:27 1999
+++ Src/utils.c	Sat Feb 13 15:26:32 1999
@@ -1160,7 +1160,7 @@
     char c;
 
     while (read(SHTTY, &c, 1) != 1) {
-	if (errno != EINTR)
+	if (errno != EINTR || errflag)
 	    return -1;
     }
     return STOUC(c);

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author