From 3d5fedd33edc91d7c972c5b6fc1d89db90cf7bb0 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Thu, 7 Nov 2013 11:20:50 +0000 Subject: [PATCH] Fix an off-by-one error that was causing menus to look funny. --- usr.sbin/bsdconfig/share/dialog.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr index 1a0c27633bef..1297711dad2c 100644 --- a/usr.sbin/bsdconfig/share/dialog.subr +++ b/usr.sbin/bsdconfig/share/dialog.subr @@ -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 ] ||