mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Image: Fix bug when backend renderer isn't found
This commit is contained in:
4
neofetch
4
neofetch
@@ -1976,7 +1976,7 @@ image_backend() {
|
||||
|
||||
get_image_size
|
||||
make_thumbnail
|
||||
display_image
|
||||
display_image 2>/dev/null
|
||||
;;
|
||||
|
||||
*)
|
||||
@@ -4019,7 +4019,7 @@ main() {
|
||||
|
||||
# w3m-img: Draw the image a second time to fix
|
||||
# rendering issues in specific terminal emulators.
|
||||
[[ "$image_program" == *w3m* ]] && display_image
|
||||
[[ "$image_program" == *w3m* ]] && display_image 2>/dev/null
|
||||
|
||||
# Take a screenshot.
|
||||
[[ "$scrot" == "on" ]] && take_scrot
|
||||
|
Reference in New Issue
Block a user