zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@sunsite.dk>
Subject: [PATCH] Print a newline when user presses enter at spell correction prompt.
Date: Sat, 27 Sep 2008 23:21:52 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.0809272319580.17233@localhost> (raw)

---
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


                 reply	other threads:[~2008-09-27 21:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.0809272319580.17233@localhost \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).