From 9a0aa9938ac0025342a9e0fbb97f85104cb5be0a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 3 Oct 2016 21:47:29 +1100 Subject: [PATCH] Fix weird prompt issues --- config/config | 1 - neofetch | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config/config b/config/config index 8cf39e72..eb393253 100644 --- a/config/config +++ b/config/config @@ -48,7 +48,6 @@ printinfo () { info linebreak info cols - info linebreak } diff --git a/neofetch b/neofetch index 182a7870..880964f2 100755 --- a/neofetch +++ b/neofetch @@ -2807,13 +2807,18 @@ dynamicprompt() { # If the info is higher than the ascii/image place the prompt # based on the info height instead of the ascii/image height. if [ "${lines:-0}" -lt "${info_height:-0}" ]; then - lines="$((info_height - lines - 2))" + lines="0" else - lines="$((lines - info_height - 2))" + lines="$((lines - info_height - 4))" fi # Set the prompt location [ "$image" != "off" ] && printf "\033[${lines/-*/0}B" + + # Add some padding if the lines are above 0 + if [ "$lines" -gt 0 ]; then + printf "\n\n" + fi } # }}}