mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Fix integer error
This commit is contained in:
3
neofetch
3
neofetch
@@ -2873,6 +2873,9 @@ if [ "$image" != "off" ]; then
|
||||
# Get cursor position
|
||||
info_height="$(IFS=';' read -srdR -t 1 -p $'\033[6n' ROW COL; printf "%s" "${ROW#*[}")"
|
||||
|
||||
# If get cursor pos fails set the value to 0
|
||||
[ -z "$info_height" ] && info_height=0
|
||||
|
||||
# Set cursor position dynamically based on height of ascii/text.
|
||||
[ "$lines" -lt "$info_height" ] && lines="$info_height"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user