changeset 1419:fa9edbd9ccaa

Fix ^A handling
author gthomas
date Fri, 05 Dec 2003 12:51:55 +0000
parents 879ff7a40226
children 9721661d7ecc
files packages/redboot/current/ChangeLog packages/redboot/current/src/io.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-05  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/io.c (_rb_gets_preloaded): ^A could have moved the cursor to
+	the wrong location on the screen if ^F/^B had been used.
+
 2003-12-03  David Vrabel  <dvrabel@arcom.com>
 
 	* src/time_date.cxx (do_time_date): Use YYYY/MM/DD HH:MM:SS format
--- a/packages/redboot/current/src/io.c
+++ b/packages/redboot/current/src/io.c
@@ -456,7 +456,7 @@ int
         case CTRL('A'):
             // Move insertion point to beginning of line
             if (ip != buf) {
-                xp = eol;
+                xp = ip;
                 while (xp-- != buf) {
                     mon_write_char('\b');
                 }