This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RedBoot - fix ^A handling


-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/src/io.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/io.c,v
retrieving revision 1.31
diff -u -5 -p -r1.31 io.c
--- redboot/current/src/io.c	16 Jul 2003 19:08:54 -0000	1.31
+++ redboot/current/src/io.c	4 Dec 2003 21:56:01 -0000
@@ -454,11 +454,11 @@ _rb_gets_preloaded(char *buf, int buflen
             }
             break;
         case CTRL('A'):
             // Move insertion point to beginning of line
             if (ip != buf) {
-                xp = eol;
+                xp = ip;
                 while (xp-- != buf) {
                     mon_write_char('\b');
                 }
             }
             ip = buf;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]