zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Print a newline when user presses enter at spell correction prompt.
@ 2008-09-27 21:21 Mikael Magnusson
  0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2008-09-27 21:21 UTC (permalink / raw)
  To: zsh workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-27 21:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-27 21:21 [PATCH] Print a newline when user presses enter at spell correction prompt Mikael Magnusson

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