diff options
author | dteske <dteske@FreeBSD.org> | 2013-06-04 00:38:19 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-06-04 00:38:19 +0000 |
commit | b381972ac37afbc6b31b3efa7ad06ded9f991a29 (patch) | |
tree | 3e80d2b18f4d3a1369bc1378a10b7b5c0bf98c10 | |
parent | aa9af606b34fdf722fe548983c23c64c20daa940 (diff) | |
download | FreeBSD-src-b381972ac37afbc6b31b3efa7ad06ded9f991a29.zip FreeBSD-src-b381972ac37afbc6b31b3efa7ad06ded9f991a29.tar.gz |
Fix menu accenting for the package category list. The single-space indent
for duplicate initial-characters was removed for making comparisons but was
not put back.
-rwxr-xr-x | usr.sbin/bsdconfig/share/packages/packages.subr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bsdconfig/share/packages/packages.subr b/usr.sbin/bsdconfig/share/packages/packages.subr index 33f9e03..e46ce29 100755 --- a/usr.sbin/bsdconfig/share/packages/packages.subr +++ b/usr.sbin/bsdconfig/share/packages/packages.subr @@ -73,13 +73,13 @@ SELECTED_PACKAGES= # f_package_accent_category_menu() { - local var_to_set="$1" cat desc help varcat menu_buf n + local var_to_set="$1" category cat desc help varcat menu_buf n shift 1 # var_to_set while [ $# -gt 0 ]; do - cat="${1%\*}" desc="${2%%; *}" help="$3" + category="${1%\*}" desc="${2%%; *}" help="$3" shift 3 # cat/desc/help - cat="${cat# }" # Trim leading space inserted by sort-method + cat="${category# }" # Trim lead space inserted by sort-method f_str2varname "$cat" varcat # Add number of installed packages for this category (if any) @@ -99,11 +99,11 @@ f_package_accent_category_menu() [ $n -ge 1 ] && desc="$desc; $n $msg_selected" # Re-Add asterisk to the category if its index has been cached - f_isset _index_page_${varcat}_1 && cat="$cat*" + f_isset _index_page_${varcat}_1 && category="$category*" # Update buffer with modified elements menu_buf="$menu_buf - '$cat' '$desc' '$help'" # End-Quote + '$category' '$desc' '$help'" # End-Quote done setvar "$var_to_set" "$menu_buf" # return our buffer } |