Commit 453a38d7 authored by Dylan Araps's avatar Dylan Araps

Images: Fix Division by 0 error. Closes #410

parent 7b2dcea1
......@@ -2047,7 +2047,7 @@ getimage() {
fi
# If $img isn't a file fallback to ascii mode.
if [ ! -f "$img" ] || [ "$term_width" -le 10 ]; then
if [ ! -f "$img" ] || [ -z "$term_width" ] || [ "$term_width" -le 10 ]; 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