mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
general: Fixed bug with line_break alternative. Closes #1157
This commit is contained in:
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user