From owner-svn-src-head@FreeBSD.ORG Tue Oct 9 06:32:27 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E52F91081; Tue, 9 Oct 2012 06:32:27 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CB1158FC26; Tue, 9 Oct 2012 06:32:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q993BGIO019899; Tue, 9 Oct 2012 03:11:16 GMT (envelope-from dteske@svn.freebsd.org) Received: (from dteske@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q993BGGB019897; Tue, 9 Oct 2012 03:11:16 GMT (envelope-from dteske@svn.freebsd.org) Message-Id: <201210090311.q993BGGB019897@svn.freebsd.org> From: Devin Teske Date: Tue, 9 Oct 2012 03:11:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241365 - head/sys/boot/forth X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2012 06:32:28 -0000 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