svn commit: r339844 - head/usr.sbin/bsdconfig/share
Devin Teske
dteske at FreeBSD.org
Sun Oct 28 19:29:08 UTC 2018
Author: dteske
Date: Sun Oct 28 19:29:07 2018
New Revision: 339844
URL: https://svnweb.freebsd.org/changeset/base/339844
Log:
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.
Modified:
head/usr.sbin/bsdconfig/share/dialog.subr
Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr Sun Oct 28 18:32:47 2018 (r339843)
+++ head/usr.sbin/bsdconfig/share/dialog.subr Sun Oct 28 19:29:07 2018 (r339844)
@@ -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
More information about the svn-src-head
mailing list