Fix glitched line endings on long lines

This commit is contained in:
Dylan Araps 2016-10-17 00:07:30 +11:00
parent f03b81a695
commit 48819dc592

View file

@ -2397,7 +2397,7 @@ info() {
[ -z "$2" ] && string="${string/*: }" [ -z "$2" ] && string="${string/*: }"
# Print the string # Print the string
printf "%b%s\n" "${padding}${string}${reset}" printf "%b%s\n" "${padding}${string}${reset} "
# Calculate info height # Calculate info height
info_height="$((info_height+=1))" info_height="$((info_height+=1))"
@ -2432,7 +2432,7 @@ prin() {
string="$(trim "$string")" string="$(trim "$string")"
# Print the info # Print the info
printf "%b%s\n" "${padding}${string}${reset}" printf "%b%s\n" "${padding}${string}${reset} "
# Calculate info height # Calculate info height
info_height="$((info_height+=1))" info_height="$((info_height+=1))"