general: Fixed bug with line_break alternative. Closes #1157
This commit is contained in:
parent
c76c122650
commit
e2e98a6c7c
1 changed files with 3 additions and 3 deletions
6
neofetch
6
neofetch
|
@ -3388,9 +3388,9 @@ get_cols() {
|
||||||
cols="${cols//nl/\\n\\e[${text_padding}C${zws}}"
|
cols="${cols//nl/\\n\\e[${text_padding}C${zws}}"
|
||||||
|
|
||||||
# Add block height to info height.
|
# 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
|
fi
|
||||||
|
|
||||||
unset -v blocks blocks2 cols
|
unset -v blocks blocks2 cols
|
||||||
|
@ -3953,7 +3953,7 @@ prin() {
|
||||||
string="${subtitle_color}${bold}${string}"
|
string="${subtitle_color}${bold}${string}"
|
||||||
|
|
||||||
# Print the info.
|
# 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.
|
# Calculate info height.
|
||||||
((++info_height))
|
((++info_height))
|
||||||
|
|
Loading…
Reference in a new issue