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

PATCH: dead code in hdynread2



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;



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