From 0b5d25d9b52aa8240cb6295be88da7ed61a30e04 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 22 Oct 2016 09:49:59 +1100 Subject: [PATCH] Fix cursor bugs if ascii art is taller than info --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 967a13eb..190f3c31 100755 --- a/neofetch +++ b/neofetch @@ -2940,6 +2940,8 @@ dynamicprompt() { if [ "$image" != "ascii" ]; then lines="$((${height:-1} / ${font_height:-1} + 2))" cursor_yoffset="$((${yoffset:-1} / ${font_height:-1}))" + else + cursor_yoffset="0 - 4" fi # If the info is higher than the ascii/image place the prompt @@ -2954,7 +2956,7 @@ dynamicprompt() { [ "$image" != "off" ] && printf "\033[${lines/-*/0}B" # Add some padding - [ "$image_backend" != "w3m" ] && \ + [ "$image" == "ascii" ] && \ [ "$lines" -gt 0 ] && \ printf "\n\n" }