zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: dead code in hdynread2
@ 2008-09-04 21:05 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-09-04 21:05 UTC (permalink / raw)
  To: zsh-workers

c can apparently never be '\n' there.

Index: Src/hist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/hist.c,v
retrieving revision 1.81
diff -u -r1.81 hist.c
--- Src/hist.c	31 Jul 2008 08:44:21 -0000	1.81
+++ Src/hist.c	4 Sep 2008 21:03:43 -0000
@@ -1935,10 +1935,6 @@
 
     ptr = buf;
     while ((c = ingetc()) != stop && c != '\n' && !lexstop) {
-	if (c == '\n') {
-	    inungetc(c);
-	    break;
-	}
 	if (c == '\\')
 	    c = ingetc();
 	*ptr++ = c;


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 21:05 PATCH: dead code in hdynread2 Clint Adams

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