From owner-svn-src-all@freebsd.org Sun Oct 28 19:29:08 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3D5E10DDEFD; Sun, 28 Oct 2018 19:29:07 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A94F6BBFE; Sun, 28 Oct 2018 19:29:07 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7BE4A23A14; Sun, 28 Oct 2018 19:29:07 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9SJT7nI049320; Sun, 28 Oct 2018 19:29:07 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9SJT7ws049319; Sun, 28 Oct 2018 19:29:07 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201810281929.w9SJT7ws049319@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Sun, 28 Oct 2018 19:29:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339844 - head/usr.sbin/bsdconfig/share X-SVN-Group: head X-SVN-Commit-Author: dteske X-SVN-Commit-Paths: head/usr.sbin/bsdconfig/share X-SVN-Commit-Revision: 339844 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2018 19:29:08 -0000 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