From 97820530b1b809c9b27485b00549645ddcc127e9 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Sun, 28 Oct 2018 19:29:07 +0000 Subject: [PATCH] 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. --- usr.sbin/bsdconfig/share/dialog.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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