Author: dteske
Date: Fri Oct 26 01:47:59 2012
New Revision: 242115
URL: http://svn.freebsd.org/changeset/base/242115
Log:
Tighten-up displays that use a NULL prompt (e.g., networking and usermgmt).
Approved by: adrian (co-mentor) (implicit)
Modified:
head/usr.sbin/bsdconfig/share/dialog.subr
Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr Fri Oct 26 00:46:09 2012
(r242114)
+++ head/usr.sbin/bsdconfig/share/dialog.subr Fri Oct 26 01:47:59 2012
(r242115)
@@ -272,7 +272,7 @@ f_dialog_infobox_size()
#
# Set height based on number of rows in prompt
#
- height=$( echo "$prompt" | f_number_of_lines )
+ height=$( echo -n "$prompt" | f_number_of_lines )
height=$(( $height + 2 ))
#
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"