Updated output of disk statistica to be more uniform with the rest. Removed unneccesary space (empty lines) bein prinnted after the output.

This commit is contained in:
Mirdarthos 2024-01-02 17:59:48 +02:00
parent ccd5d9f526
commit 52cea572b6

View file

@ -3752,7 +3752,7 @@ get_disk() {
# Append '(disk mount point)' to the subtitle. # Append '(disk mount point)' to the subtitle.
if [[ "$subtitle" ]]; then if [[ "$subtitle" ]]; then
prin "$subtitle${disk_sub:+ ($disk_sub)}" "$disk" prin "$subtitle" "${disk_sub:+ ${bold}($disk_sub)${reset}} $disk"
else else
prin "$disk_sub" "$disk" prin "$disk_sub" "$disk"
fi fi
@ -4882,7 +4882,7 @@ dynamic_prompt() {
# If the ascii art is taller than the info. # If the ascii art is taller than the info.
((lines=lines>info_height?lines-info_height+1:1)) ((lines=lines>info_height?lines-info_height+1:1))
printf -v nlines "%${lines}s" printf -v nlines "%${lines}s"\
printf "%b" "${nlines// /\\n}" printf "%b" "${nlines// /\\n}"
} }