mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
Fix w3m-img being used even when images were off
This commit is contained in:
12
neofetch
12
neofetch
@@ -3381,11 +3381,15 @@ main() {
|
||||
|
||||
# Print the info
|
||||
printinfo
|
||||
[ "$image" != "off" ] && dynamicprompt
|
||||
|
||||
# w3m-img: Draw the image a second time to fix
|
||||
# rendering issues in specific terminal emulators.
|
||||
[ "$image_backend" == "w3m" ] && displayimage
|
||||
# Prompt calculation
|
||||
if [ "$image" != "off" ]; then
|
||||
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
|
||||
printf "%b%s" "\033[?7h"
|
||||
|
||||
Reference in New Issue
Block a user