mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Fix color blocks bug
This commit is contained in:
5
neofetch
5
neofetch
@@ -24,6 +24,7 @@
|
||||
# https://github.com/dylanaraps/
|
||||
|
||||
version="${BASH_VERSION/.*}"
|
||||
|
||||
SYS_LOCALE="${LANG:-C}"
|
||||
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
|
||||
|
||||
@@ -2110,8 +2111,8 @@ getcols () {
|
||||
spaces="$(printf "%${block_height}s")"
|
||||
|
||||
# Convert the spaces into rows of blocks.
|
||||
[ ! -z "$blocks" ] && cols+=${spaces// /${blocks}\033[0mnl}
|
||||
[ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}\033[0mnl}
|
||||
[ ! -z "$blocks" ] && cols+=${spaces// /${blocks}"\033[0m"nl}
|
||||
[ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}"\033[0m"nl}
|
||||
|
||||
# Add newlines to the string.
|
||||
cols=${cols%%'nl'}
|
||||
|
||||
Reference in New Issue
Block a user