Image: Fix bug when backend renderer isn't found

This commit is contained in:
Dylan Araps 2017-01-15 00:22:55 +11:00
parent 853bd8c941
commit 87cc686070

View file

@ -1976,7 +1976,7 @@ image_backend() {
get_image_size get_image_size
make_thumbnail make_thumbnail
display_image display_image 2>/dev/null
;; ;;
*) *)
@ -4019,7 +4019,7 @@ main() {
# w3m-img: Draw the image a second time to fix # w3m-img: Draw the image a second time to fix
# rendering issues in specific terminal emulators. # rendering issues in specific terminal emulators.
[[ "$image_program" == *w3m* ]] && display_image [[ "$image_program" == *w3m* ]] && display_image 2>/dev/null
# Take a screenshot. # Take a screenshot.
[[ "$scrot" == "on" ]] && take_scrot [[ "$scrot" == "on" ]] && take_scrot