From fe2c6e1e490af1f8d065916127ad956e94a9afb1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 26 Mar 2016 13:44:03 +1100 Subject: [PATCH] Fix integer error --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index 76ddb566..73dbf4e3 100755 --- a/neofetch +++ b/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"