*: Fix regression introduced by opt_hook_width on non-tty output

This commit is contained in:
Ethan P 2020-04-27 18:29:56 -07:00
parent c9f11c19ac
commit b7b590da8a
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -23,5 +23,5 @@ hook_width() {
} }
# Default terminal width. # Default terminal width.
OPT_TERMINAL_WIDTH="$(stty size | cut -d' ' -f 2)" OPT_TERMINAL_WIDTH="$({ stty size 2>/dev/null || echo "22 80"; } | cut -d' ' -f 2)"
} }