Fix w3m-img being used even when images were off
This commit is contained in:
parent
1993f22ec6
commit
c869e81e3b
6
neofetch
6
neofetch
|
@ -3381,11 +3381,15 @@ main() {
|
||||||
|
|
||||||
# Print the info
|
# Print the info
|
||||||
printinfo
|
printinfo
|
||||||
[ "$image" != "off" ] && dynamicprompt
|
|
||||||
|
# Prompt calculation
|
||||||
|
if [ "$image" != "off" ]; then
|
||||||
|
dynamicprompt
|
||||||
|
|
||||||
# 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_backend" == "w3m" ] && displayimage
|
[ "$image_backend" == "w3m" ] && displayimage
|
||||||
|
fi
|
||||||
|
|
||||||
# Re-enable line wrap
|
# Re-enable line wrap
|
||||||
printf "%b%s" "\033[?7h"
|
printf "%b%s" "\033[?7h"
|
||||||
|
|
Reference in New Issue