Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit PR/9243: Kevin Schoedel: libedit ignores repeat ...



details:   https://anonhg.NetBSD.org/src/rev/296571302b84
branches:  trunk
changeset: 480773:296571302b84
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 19 18:30:19 2000 +0000

description:
PR/9243: Kevin Schoedel: libedit ignores repeat count

diffstat:

 lib/libedit/read.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 2d013b935c07 -r 296571302b84 lib/libedit/read.c
--- a/lib/libedit/read.c        Wed Jan 19 16:40:10 2000 +0000
+++ b/lib/libedit/read.c        Wed Jan 19 18:30:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: read.c,v 1.15 1999/10/04 23:23:21 lukem Exp $  */
+/*     $NetBSD: read.c,v 1.16 2000/01/19 18:30:19 christos Exp $       */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.15 1999/10/04 23:23:21 lukem Exp $");
+__RCSID("$NetBSD: read.c,v 1.16 2000/01/19 18:30:19 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -209,10 +209,10 @@
     el_action_t *cmdnum;
     char *ch;
 {
-    el_action_t  cmd = 0;
+    el_action_t  cmd = ED_UNASSIGNED;
     int     num;
 
-    while (cmd == 0 || cmd == ED_SEQUENCE_LEAD_IN) {
+    while (cmd == ED_UNASSIGNED || cmd == ED_SEQUENCE_LEAD_IN) {
        if ((num = el_getc(el, ch)) != 1)       /* if EOF or error */
            return num;
 
@@ -322,7 +322,7 @@
 #endif /* DEBUG_READ */
     num_read = read_char(el, cp);
 #ifdef DEBUG_READ
-    (void) fprintf(el->el_errfile, "Got it %c\n", cp);
+    (void) fprintf(el->el_errfile, "Got it %c\n", *cp);
 #endif /* DEBUG_READ */
     return num_read;
 }



Home | Main Index | Thread Index | Old Index