cursor: simplify statement
This commit is contained in:
parent
cc0d232b48
commit
d6505023a9
6
neofetch
6
neofetch
|
@ -4126,11 +4126,7 @@ dynamic_prompt() {
|
||||||
[[ "$image_backend" != "ascii" ]] && lines="$(((height + yoffset) / font_height + 1))"
|
[[ "$image_backend" != "ascii" ]] && lines="$(((height + yoffset) / font_height + 1))"
|
||||||
|
|
||||||
# If the ascii art is taller than the info.
|
# If the ascii art is taller than the info.
|
||||||
if ((lines > info_height)); then
|
((lines=lines>info_height?lines-info_height+1:1))
|
||||||
lines="$((lines - info_height + 1))"
|
|
||||||
else
|
|
||||||
lines=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf -v nlines "%${lines}s"
|
printf -v nlines "%${lines}s"
|
||||||
printf "%b" "${nlines// /\\n}"
|
printf "%b" "${nlines// /\\n}"
|
||||||
|
|
Reference in New Issue