Commit 0be5f012 authored by Dylan Araps's avatar Dylan Araps

Image: If terminal width is 0, fallback to ascii mode

parent ca647d72
......@@ -2025,7 +2025,7 @@ getimage() {
# If $img isn't a file or the terminal doesn't support xterm escape sequences,
# fallback to ascii mode.
if [ ! -f "$img" ] || ([ "$no_esc" == 1 ] && [ "$image_backend" != "tycat" ]); then
if [ ! -f "$img" ] || [ "$term_width" == 0 ] || ([ "$no_esc" == 1 ] && [ "$image_backend" != "tycat" ]); then
image="ascii"
getascii
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment