From 281fd368cea32387d299608d2967f145ad861689 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Jan 2017 22:59:07 +1100 Subject: [PATCH] General: Make to_ functions print the error first --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index b9bbed81..29030399 100755 --- a/neofetch +++ b/neofetch @@ -2374,6 +2374,9 @@ display_image() { } to_ascii() { + # Log the error. + err "$1" + # This function makes neofetch fallback to ascii mode. image_backend="ascii" @@ -2382,17 +2385,14 @@ to_ascii() { # Set cursor position next image/ascii. printf "%b" "\033[${lines:-0}A\033[9999999D" - - # Log the error. - err "$1" } to_off() { # This function makes neofetch fallback to off mode. + err "$1" image_backend="off" text_padding= zws= - err "$1" } # SCREENSHOT