Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug in spell correction
- X-seq: zsh-workers 25963
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: bug in spell correction
- Date: Thu, 30 Oct 2008 13:06:27 +0000
- In-reply-to: <237967ef0810300555kccfcf2bt826dc4092f534b21@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <237967ef0810300555kccfcf2bt826dc4092f534b21@xxxxxxxxxxxxxx>
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