Commit 926dea97 authored by Dylan Araps's avatar Dylan Araps

Images: Fix blank images in Iterm2, closes #513

parent 9343a42a
...@@ -1877,9 +1877,7 @@ get_cols() { ...@@ -1877,9 +1877,7 @@ get_cols() {
get_image_backend() { get_image_backend() {
# This function determines which image backend to use # This function determines which image backend to use
# by checking for programs and etc. # by checking for programs and etc.
get_image_program
# Automatically find w3m-img
get_w3m_img_path
# Fallback to ascii mode if imagemagick isn't installed. # Fallback to ascii mode if imagemagick isn't installed.
type -p convert >/dev/null 2>&1 || image_backend="ascii" type -p convert >/dev/null 2>&1 || image_backend="ascii"
...@@ -1905,7 +1903,6 @@ get_image_backend() { ...@@ -1905,7 +1903,6 @@ get_image_backend() {
return return
fi fi
get_image_program
get_term_size get_term_size
# Fallback to ascii mode if terminal size wasn't found. # Fallback to ascii mode if terminal size wasn't found.
...@@ -2006,6 +2003,7 @@ get_image_program() { ...@@ -2006,6 +2003,7 @@ get_image_program() {
else else
image_program="w3m" image_program="w3m"
get_w3m_img_path
fi fi
} }
......
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