Fix weird prompt issues
This commit is contained in:
parent
8a1eb28987
commit
9a0aa9938a
2 changed files with 7 additions and 3 deletions
|
@ -48,7 +48,6 @@ printinfo () {
|
|||
|
||||
info linebreak
|
||||
info cols
|
||||
info linebreak
|
||||
}
|
||||
|
||||
|
||||
|
|
9
neofetch
9
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
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue