svn commit: r257793 - head/usr.sbin/bsdconfig/share

Devin Teske dteske at FreeBSD.org
Thu Nov 7 11:20:51 UTC 2013


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 ] ||


More information about the svn-src-all mailing list