mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-18 09:57:13 +00:00
Cols: Fixed color_blocks=off causing an extra newline to be printed
This commit is contained in:
4
neofetch
4
neofetch
@@ -1940,9 +1940,11 @@ get_cols() {
|
|||||||
cols="${cols//nl/\\n\\033[${text_padding}C${zws}}"
|
cols="${cols//nl/\\n\\033[${text_padding}C${zws}}"
|
||||||
|
|
||||||
printf "%b\n" "\033[${text_padding}C${zws}${cols}"
|
printf "%b\n" "\033[${text_padding}C${zws}${cols}"
|
||||||
info_height="$((info_height+=block_height+2))"
|
else
|
||||||
|
printf "\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
info_height="$((info_height+=block_height+2))"
|
||||||
unset -v blocks blocks2 cols
|
unset -v blocks blocks2 cols
|
||||||
|
|
||||||
# Tell info() that we printed manually.
|
# Tell info() that we printed manually.
|
||||||
|
|||||||
Reference in New Issue
Block a user