Commit abf9b5d2 authored by Dylan Araps's avatar Dylan Araps

Fix incorrect cursor position when using small ascii art

parent 7f5f05b4
...@@ -1995,8 +1995,10 @@ getascii() { ...@@ -1995,8 +1995,10 @@ getascii() {
ascii="${ascii_distro,,}" ascii="${ascii_distro,,}"
fi fi
[ "$ascii_logo_size" == "small" ] && \ if [ "$ascii_logo_size" == "small" ]; then
ascii="${ascii/ *}_small" ascii="${ascii/ *}_small"
prompt_loc="3"
fi
if [ -f "/usr/share/neofetch/ascii/distro/${ascii/ *}" ]; then if [ -f "/usr/share/neofetch/ascii/distro/${ascii/ *}" ]; then
ascii="/usr/share/neofetch/ascii/distro/${ascii/ *}" ascii="/usr/share/neofetch/ascii/distro/${ascii/ *}"
...@@ -3244,7 +3246,7 @@ main() { ...@@ -3244,7 +3246,7 @@ main() {
fi fi
# Set cursor position next to ascii art # Set cursor position next to ascii art
printf "\033[$((${lines:-0} - 4))A" printf "\033[$((${lines:-0} - ${prompt_loc:-4}))A"
# Reset horizontal cursor position # Reset horizontal cursor position
printf "\033[9999999D" printf "\033[9999999D"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment