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

This commit is contained in:
Devin Teske 2013-11-07 11:20:50 +00:00
parent 1c6d60de93
commit 3d5fedd33e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257793

View File

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