Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2013 11:20:51 +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: r257793 - head/usr.sbin/bsdconfig/share
Message-ID:  <201311071120.rA7BKpBh049420@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Thu Nov  7 11:20:50 2013
New Revision: 257793
URL: http://svnweb.freebsd.org/changeset/base/257793

Log:
  Fix an off-by-one error that was causing menus to look funny.

Modified:
  head/usr.sbin/bsdconfig/share/dialog.subr

Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr	Thu Nov  7 10:48:00 2013	(r257792)
+++ head/usr.sbin/bsdconfig/share/dialog.subr	Thu Nov  7 11:20:50 2013	(r257793)
@@ -527,7 +527,7 @@ f_dialog_menu_constrain()
 			: ${__min_rows:=0}
 		fi
 
-		local __max_rows=$(( $__max_height_menu_constrain - 8 ))
+		local __max_rows=$(( $__max_height_menu_constrain - 7 ))
 		# If prompt_len is zero (no prompt), bump the max-rows by 1
 		# Default assumption is (if no argument) that there's no prompt
 		[ ${__prompt_len:-0} -gt 0 ] ||



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