Fixed bug when color blocks wrap to the next line
This commit is contained in:
2
neofetch
2
neofetch
@@ -1846,7 +1846,7 @@ getcols () {
|
|||||||
while [ $start -le $end ]; do
|
while [ $start -le $end ]; do
|
||||||
case "$start" in
|
case "$start" in
|
||||||
[0-6]) printf "\033[4${start}m%${block_width}s" ;;
|
[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" ;;
|
*) printf "\033[48;5;${start}m%${block_width}s" ;;
|
||||||
esac
|
esac
|
||||||
start=$((start + 1))
|
start=$((start + 1))
|
||||||
|
|||||||
Reference in New Issue
Block a user