You can now print info without a subtitle! eg. "info memory"

This commit is contained in:
Dylan 2016-02-05 18:16:46 +11:00
parent 5aaab244ce
commit 008f73b3ab

7
fetch
View file

@ -1784,10 +1784,6 @@ info () {
string="${underline_color}${output}"
;;
linebreak | cols)
string=""
;;
*)
string="${bold}${subtitle_color}${subtitle}${clear}"
string+="${colon_color}: ${info_color}${output}"
@ -1795,6 +1791,9 @@ info () {
;;
esac
# If there's no subtitle don't print one
[ -z "$2" ] && string=${string/*: }
# Print the string
printf "%b%s\n" "${padding}${string}${clear}"
}