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

[PATCH] Print a newline when user presses enter at spell correction prompt.



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



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