From fe9933f54421211658a413d5a8aa94741e7961c0 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 3 Dec 2017 19:52:03 +0700 Subject: [PATCH] Image mode (MacOS): Fixed garbage letter appeared in iTerm2 --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 157cf386..4ac54a4c 100755 --- a/neofetch +++ b/neofetch @@ -3003,7 +3003,7 @@ prin() { string="${subtitle_color}${bold}${string}" # Print the info. - printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${string}${reset}" + printf "%b\n" "${text_padding:+\033[${text_padding}C}${zws}${string}${reset} " # Calculate info height. ((++info_height)) @@ -3016,7 +3016,7 @@ get_underline() { if [[ "$underline_enabled" == "on" ]]; then printf -v underline "%${length}s" printf "%b%b\n" "${text_padding:+\033[${text_padding}C}${zws}${underline_color}" \ - "${underline// /$underline_char}${reset}" + "${underline// /$underline_char}${reset} " unset -v length fi prin=1