From e4ffa945f955495cadfda258be3012d755b27a75 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 23 Jan 2017 23:59:21 +1100 Subject: [PATCH] Cols: Fixed color_blocks=off causing an extra newline to be printed --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 6553c9d3..68217701 100755 --- a/neofetch +++ b/neofetch @@ -1940,9 +1940,11 @@ get_cols() { cols="${cols//nl/\\n\\033[${text_padding}C${zws}}" printf "%b\n" "\033[${text_padding}C${zws}${cols}" - info_height="$((info_height+=block_height+2))" + else + printf "\n" fi + info_height="$((info_height+=block_height+2))" unset -v blocks blocks2 cols # Tell info() that we printed manually.