summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-11-07 11:20:50 +0000
committerdteske <dteske@FreeBSD.org>2013-11-07 11:20:50 +0000
commite95575f2d07327b8f42b7643314424bd79ef054d (patch)
tree4dcd9d2e745a47371ebe243233de5070c93820be
parent452ab4534d6b0de83bf3f8b487897d66d9998f54 (diff)
downloadFreeBSD-src-e95575f2d07327b8f42b7643314424bd79ef054d.zip
FreeBSD-src-e95575f2d07327b8f42b7643314424bd79ef054d.tar.gz
Fix an off-by-one error that was causing menus to look funny.
-rw-r--r--usr.sbin/bsdconfig/share/dialog.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr
index 1a0c276..1297711 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 ] ||
OpenPOWER on IntegriCloud