From e2e98a6c7c60808e1dcdc6e4c1585155215cc794 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 8 Jan 2019 17:36:27 +0200 Subject: [PATCH] general: Fixed bug with line_break alternative. Closes #1157 --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 60741189..1c5cf2ca 100755 --- a/neofetch +++ b/neofetch @@ -3388,9 +3388,9 @@ get_cols() { cols="${cols//nl/\\n\\e[${text_padding}C${zws}}" # Add block height to info height. - ((info_height+=block_range[1]>7?block_height+2:block_height+1)) + ((info_height+=block_range[1]>7?block_height+3:block_height+2)) - printf '\n\e[%bC%b\n' "$text_padding" "${zws}${cols}" + printf '\n\e[%bC%b\n\n' "$text_padding" "${zws}${cols}" fi unset -v blocks blocks2 cols @@ -3953,7 +3953,7 @@ prin() { string="${subtitle_color}${bold}${string}" # Print the info. - printf '%b\n' "${text_padding:+\e[${text_padding}C}${zws}${string}${reset} " + printf '%b\n' "${text_padding:+\e[${text_padding}C}${zws}${string//\\n}${reset} " # Calculate info height. ((++info_height))