From 5a96327fa3089d0a30130c6696f79df985b4c5a7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 21 Oct 2016 18:35:17 +1100 Subject: [PATCH] Only use zero width space in image mode --- neofetch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 3819e310..edbb9f9c 100755 --- a/neofetch +++ b/neofetch @@ -1944,7 +1944,7 @@ getcols() { # Add newlines to the string. cols="${cols%%'nl'}" - cols="${cols//nl/\\n${padding}​}" + cols="${cols//nl/\\n${padding}${zws}}" fi } @@ -2141,6 +2141,7 @@ getimage() { return else clear + zws="​ " fi # Get terminal lines and columns @@ -2415,7 +2416,7 @@ info() { [ -z "$2" ] && string="${string/*: }" # Print the string - printf "%b%s\n" "${padding}​${string}${reset} " + printf "%b%s\n" "${padding}${zws}${string}${reset} " # Calculate info height info_height="$((info_height+=1))" @@ -2450,7 +2451,7 @@ prin() { string="$(trim "$string")" # Print the info - printf "%b%s\n" "${padding}​${string}${reset} " + printf "%b%s\n" "${padding}${zws}${string}${reset} " # Calculate info height info_height="$((info_height+=1))"