Fix an off-by-one error that was causing menus to look funny.
This commit is contained in:
parent
1c6d60de93
commit
3d5fedd33e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257793
@ -527,7 +527,7 @@ f_dialog_menu_constrain()
|
|||||||
: ${__min_rows:=0}
|
: ${__min_rows:=0}
|
||||||
fi
|
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
|
# If prompt_len is zero (no prompt), bump the max-rows by 1
|
||||||
# Default assumption is (if no argument) that there's no prompt
|
# Default assumption is (if no argument) that there's no prompt
|
||||||
[ ${__prompt_len:-0} -gt 0 ] ||
|
[ ${__prompt_len:-0} -gt 0 ] ||
|
||||||
|
Loading…
Reference in New Issue
Block a user