aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2018-10-28 19:29:07 +0000
committerDevin Teske <dteske@FreeBSD.org>2018-10-28 19:29:07 +0000
commit97820530b1b809c9b27485b00549645ddcc127e9 (patch)
tree2f19d2e61c90b77a08fd143919a4ab0aa37c0177 /usr.sbin
parent3048255235c13ee10b5110350ab5dde9d619ccd1 (diff)
downloadsrc-97820530b1b809c9b27485b00549645ddcc127e9.tar.gz
src-97820530b1b809c9b27485b00549645ddcc127e9.zip
Fix dialog autosizing to accomodate for hline
dialog will conditionally ignore the --hline option if not enough space was available to accomodate for the text width. Traditionally the width of the widget had to be 10 wider than the text. Recent updates to dialog have changed the requirement to be at least 12 wider than the hline text else the hline text is not rendered at the bottom of the widget. Sponsored by: Smule, Inc.
Notes
Notes: svn path=/head/; revision=339844
Diffstat (limited to 'usr.sbin')
-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 b8901df34741..5b5c8a32984e 100644
--- a/usr.sbin/bsdconfig/share/dialog.subr
+++ b/usr.sbin/bsdconfig/share/dialog.subr
@@ -646,7 +646,7 @@ f_dialog_infobox_size()
# Xdialog(1)).
#
if [ ! "$USE_XDIALOG" ]; then
- __n=$(( ${#__hline} + 10 ))
+ __n=$(( ${#__hline} + 12 ))
[ $__n -gt $__width ] && __width=$__n
fi