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

Re: bug in spell correction



On Thu, 30 Oct 2008 13:55:40 +0100
"Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
> Isn't it funny how bugs always show up _after_ the several months long
> prerelease cycle?

Yes, you can imagine how amused I am.

> % PS1='%% ' zsh -f
> % setopt correct
> % sl
> zsh: correct 'sl' to 'ls' [nyae]? <press ctrl-c here>
> zsh: correct 'sl' to 'ls' [nyae]? Ã
> %

I will wait till at least tomorrow before another attempt at 4.3.9, I
think.  Ignore the tag in CVS, I'll move it.

Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.204
diff -u -r1.204 utils.c
--- Src/utils.c	24 Oct 2008 10:27:26 -0000	1.204
+++ Src/utils.c	30 Oct 2008 13:04:33 -0000
@@ -2184,7 +2184,8 @@
 	}
 	zbeep();
     }
-    write(SHTTY, &c, 1);
+    if (c >= 0)
+	write(SHTTY, &c, 1);
     if (nl)
 	write(SHTTY, "\n", 1);
 



-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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