Fix #289
This commit is contained in:
parent
5f2f1aaeae
commit
c13c17888e
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -1538,7 +1538,7 @@ getresolution () {
|
||||||
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$refresh_rate" == "off" ]; then
|
if [ "$refresh_rate" == "off" ]; then
|
||||||
resolution="${resolution// @ [0-9][0-9]Hz}"
|
resolution="${resolution// @ [0-9][0-9]Hz}"
|
||||||
resolution="${resolution// @ [0-9][0-9][0-9]Hz}"
|
resolution="${resolution// @ [0-9][0-9][0-9]Hz}"
|
||||||
fi
|
fi
|
||||||
|
@ -3361,7 +3361,7 @@ case "$image" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Set the prompt location
|
# Set the prompt location
|
||||||
printf "%b%s" "\033[${lines}H"
|
[ "$image" != "off" ] && printf "%b%s" "\033[${lines:-0}H"
|
||||||
|
|
||||||
# Re-enable line wrap
|
# Re-enable line wrap
|
||||||
[ "$line_wrap" == "off" ] && printf "%b%s" "\033[?7h"
|
[ "$line_wrap" == "off" ] && printf "%b%s" "\033[?7h"
|
||||||
|
|
Loading…
Reference in a new issue