Merge pull request #276 from aranega/master

Fix for terminology support: does not fallback on ascii when no wallpaper is found
This commit is contained in:
Dylan Araps 2016-06-11 01:25:52 +10:00 committed by GitHub
commit d5fbd1f1ee

View file

@ -2307,7 +2307,7 @@ getimage () {
# If $img isn't a file or the terminal doesn't support xterm escape sequences,
# fallback to ascii mode.
if [ ! -f "$img" ] || [ ${#term_size} -le 5 ] && [ "$image_backend" != "tycat" ]; then
if [ ! -f "$img" ] || ([ ${#term_size} -le 5 ] && [ "$image_backend" != "tycat" ]); then
image="ascii"
getascii