svn commit: r249757 - head/usr.sbin/bsdconfig/share
Devin Teske
dteske at FreeBSD.org
Mon Apr 22 06:27:15 UTC 2013
Author: dteske
Date: Mon Apr 22 06:27:14 2013
New Revision: 249757
URL: http://svnweb.freebsd.org/changeset/base/249757
Log:
Proper fix for copy/paste error (first attempt r249756).
Modified:
head/usr.sbin/bsdconfig/share/dialog.subr
Modified: head/usr.sbin/bsdconfig/share/dialog.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/dialog.subr Mon Apr 22 06:20:34 2013 (r249756)
+++ head/usr.sbin/bsdconfig/share/dialog.subr Mon Apr 22 06:27:14 2013 (r249757)
@@ -737,9 +737,9 @@ f_dialog_radiolist_size()
# Also, calculate the number of rows (not to exceed terminal height).
#
local longest_tag=0 longest_item=0
- while [ $# -ge 2 ]; do
+ while [ $# -ge 3 ]; do
local tag="$1" item="$2"
- shift 2 # tag/item
+ shift 3 # tag/item/status
[ ${#tag} -gt $longest_tag ] && longest_tag=${#tag}
[ ${#item} -gt $longest_item ] && longest_item=${#item}
More information about the svn-src-all
mailing list