Fixed bug when color blocks wrap to the next line

This commit is contained in:
Dylan 2016-04-03 11:58:43 +10:00
parent a295181a5b
commit ed8c729df2

View file

@ -1846,7 +1846,7 @@ getcols () {
while [ $start -le $end ]; do
case "$start" in
[0-6]) printf "\033[4${start}m%${block_width}s" ;;
7) printf "\033[4${start}m%${block_width}s\n${clear}${padding}" ;;
7) printf "\033[4${start}m%${block_width}s${clear}\n${padding}" ;;
*) printf "\033[48;5;${start}m%${block_width}s" ;;
esac
start=$((start + 1))