From 69deb4309d6b5c220f931584851e0434d5138d3b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 30 Jun 2017 13:59:19 +1000 Subject: [PATCH] Image: Possibly fix xterm 1/0 error. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 893b1258..eb8b7d2f 100755 --- a/neofetch +++ b/neofetch @@ -2404,7 +2404,7 @@ get_term_size() { fi # Get terminal width/height if \033[14t is unsupported. - if [[ -z "$term_width" ]]; then + if [[ -z "$term_width" ]] || (( "$term_width" < 50 )); then if type -p xdotool >/dev/null 2>&1; then current_window="$(xdotool getactivewindow)" source <(xdotool getwindowgeometry --shell "$current_window")