Commit c869e81e authored by Dylan Araps's avatar Dylan Araps

Fix w3m-img being used even when images were off

parent 1993f22e
...@@ -3381,11 +3381,15 @@ main() { ...@@ -3381,11 +3381,15 @@ main() {
# Print the info # Print the info
printinfo printinfo
[ "$image" != "off" ] && dynamicprompt
# w3m-img: Draw the image a second time to fix # Prompt calculation
# rendering issues in specific terminal emulators. if [ "$image" != "off" ]; then
[ "$image_backend" == "w3m" ] && displayimage dynamicprompt
# w3m-img: Draw the image a second time to fix
# rendering issues in specific terminal emulators.
[ "$image_backend" == "w3m" ] && displayimage
fi
# Re-enable line wrap # Re-enable line wrap
printf "%b%s" "\033[?7h" printf "%b%s" "\033[?7h"
......
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