mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 04:32:12 +00:00
Image: Fixed bugs
This commit is contained in:
7
neofetch
7
neofetch
@@ -1958,7 +1958,7 @@ image_backend() {
|
|||||||
get_image_source
|
get_image_source
|
||||||
|
|
||||||
if [[ ! -f "$image" ]]; then
|
if [[ ! -f "$image" ]]; then
|
||||||
to_ascii "Image: \'$image_source\' doesn't exist, falling back to ascii mode."
|
to_ascii "Image: '$image_source' doesn't exist, falling back to ascii mode."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -2380,6 +2380,9 @@ to_ascii() {
|
|||||||
# Print the ascii art.
|
# Print the ascii art.
|
||||||
get_ascii 2>/dev/null
|
get_ascii 2>/dev/null
|
||||||
|
|
||||||
|
# Set cursor position next image/ascii.
|
||||||
|
printf "%b" "\033[${lines:-0}A\033[9999999D"
|
||||||
|
|
||||||
# Log the error.
|
# Log the error.
|
||||||
err "$1"
|
err "$1"
|
||||||
}
|
}
|
||||||
@@ -3810,7 +3813,7 @@ exit 1
|
|||||||
|
|
||||||
get_args() {
|
get_args() {
|
||||||
# Check the commandline flags early for '--config'.
|
# Check the commandline flags early for '--config'.
|
||||||
[[ "$@" =~ --config ]] || get_user_config 2>/dev/null
|
[[ "$@" != *--config* ]] && get_user_config 2>/dev/null
|
||||||
|
|
||||||
while [[ "$1" ]]; do
|
while [[ "$1" ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|||||||
Reference in New Issue
Block a user