zsh-workers
 help / color / mirror / code / Atom feed
* bug in spell correction
@ 2008-10-30 12:55 Mikael Magnusson
  2008-10-30 13:06 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2008-10-30 12:55 UTC (permalink / raw)
  To: zsh-workers

Isn't it funny how bugs always show up _after_ the several months long
prerelease cycle?

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

-- 
Mikael Magnusson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug in spell correction
  2008-10-30 12:55 bug in spell correction Mikael Magnusson
@ 2008-10-30 13:06 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2008-10-30 13:06 UTC (permalink / raw)
  To: zsh-workers

On Thu, 30 Oct 2008 13:55:40 +0100
"Mikael Magnusson" <mikachu@gmail.com> 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@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-30 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 12:55 bug in spell correction Mikael Magnusson
2008-10-30 13:06 ` Peter Stephenson

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