Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 03:11:16 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241365 - head/sys/boot/forth
Message-ID:  <201210090311.q993BGGB019897@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Tue Oct  9 03:11:15 2012
New Revision: 241365
URL: http://svn.freebsd.org/changeset/base/241365

Log:
  Fix an oversight that cyclic menu items actually are zero-based and can
  accommodate 10 different states.
  
  Reviewed by:	eadler, adrian (co-mentor)
  Approved by:	adrian (co-mentor)

Modified:
  head/sys/boot/forth/menu.4th

Modified: head/sys/boot/forth/menu.4th
==============================================================================
--- head/sys/boot/forth/menu.4th	Tue Oct  9 02:52:56 2012	(r241364)
+++ head/sys/boot/forth/menu.4th	Tue Oct  9 03:11:15 2012	(r241365)
@@ -935,23 +935,23 @@ create init_text8 255 allot
 
 		s" menu_caption[x][y]"	\ cycle_menuitem caption
 		-rot 2dup 13 + c! rot	\ replace 'x'
-		49 -rot
+		48 -rot
 		begin
 			16 2over rot + c! \ replace 'y'
 			2dup unsetenv
 
-			rot 1+ dup 56 > 2swap rot
+			rot 1+ dup 57 > 2swap rot
 		until
 		2drop drop
 
 		s" ansi_caption[x][y]"	\ cycle_menuitem ANSI caption
 		-rot 2dup 13 + c! rot	\ replace 'x'
-		49 -rot
+		48 -rot
 		begin
 			16 2over rot + c! \ replace 'y'
 			2dup unsetenv
 
-			rot 1+ dup 56 > 2swap rot
+			rot 1+ dup 57 > 2swap rot
 		until
 		2drop drop
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210090311.q993BGGB019897>