[OpenBIOS] r634 - trunk/openbios-devel/modules

svn at openbios.org svn at openbios.org
Mon Nov 23 22:43:10 CET 2009


Author: laurent
Date: 2009-11-23 22:43:09 +0100 (Mon, 23 Nov 2009)
New Revision: 634

Modified:
   trunk/openbios-devel/modules/cmdline.c
Log:
Correct command line history management when we move forward (ctrl-n or 
arrow down).

Signed-off-by: Laurent Vivier <Laurent at vivier.eu>


Modified: trunk/openbios-devel/modules/cmdline.c
===================================================================
--- trunk/openbios-devel/modules/cmdline.c	2009-11-22 10:21:43 UTC (rev 633)
+++ trunk/openbios-devel/modules/cmdline.c	2009-11-23 21:43:09 UTC (rev 634)
@@ -357,7 +357,7 @@
 go_down:
 			if( !histind )
 				break;
-			history_get( ci, --histind );
+			history_get( ci, --histind - 1);
 			clearline( pos, n );
 			emit_str( buf );
 			pos = n = strlen( buf );




More information about the OpenBIOS mailing list