From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18586 invoked from network); 27 Sep 2008 21:22:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Sep 2008 21:22:12 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 79829 invoked from network); 27 Sep 2008 21:22:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Sep 2008 21:22:06 -0000 Received: (qmail 21674 invoked by alias); 27 Sep 2008 21:21:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25761 Received: (qmail 21656 invoked from network); 27 Sep 2008 21:21:58 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 27 Sep 2008 21:21:58 -0000 Received: from smtp.bredband2.net (mail.bredband2.net [82.209.166.4]) by bifrost.dotsrc.org (Postfix) with ESMTP id 1EFEF80308B9 for ; Sat, 27 Sep 2008 23:21:54 +0200 (CEST) Received: (qmail 8211 invoked from network); 27 Sep 2008 21:21:08 -0000 Received: from lkf-194-200-233-83.3.cust.bredband2.com (HELO mika.l3ib.org) ([83.233.200.194]) (envelope-sender ) by smtp.bredband2.net (qmail-ldap-1.03) with SMTP for ; 27 Sep 2008 21:21:08 -0000 Date: Sat, 27 Sep 2008 23:21:52 +0200 (CEST) From: Mikael Magnusson To: zsh workers Subject: [PATCH] Print a newline when user presses enter at spell correction prompt. Message-ID: User-Agent: Alpine 2.00 (LNX ) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: ClamAV 0.92.1/8346/Sat Sep 27 09:08:52 2008 on bifrost X-Virus-Status: Clean --- Is this the proper fix? Seems to fix it here. Before: % hell zsh: correct 'hell' to 'bell' [nyae]? nzsh: command not found: hell After: % hell zsh: correct 'hell' to 'bell' [nyae]? n zsh: command not found: hell (Pressing enter in both cases, not n). Src/utils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Src/utils.c b/Src/utils.c index 8b97588..62d75b4 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2168,6 +2168,7 @@ getquery(char *valid_chars, int purge) break; if (c == '\n') { c = *valid_chars; + nl = 1; break; } if (strchr(valid_chars, c)) { -- 1.6.0.2.GIT -- Mikael Magnusson