Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: dead code in hdynread2
- X-seq: zsh-workers 25610
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: dead code in hdynread2
- Date: Thu, 4 Sep 2008 21:05:49 +0000
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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