Commit 5a96327f authored by Dylan Araps's avatar Dylan Araps

Only use zero width space in image mode

parent 1a8734bf
...@@ -1944,7 +1944,7 @@ getcols() { ...@@ -1944,7 +1944,7 @@ getcols() {
# Add newlines to the string. # Add newlines to the string.
cols="${cols%%'nl'}" cols="${cols%%'nl'}"
cols="${cols//nl/\\n${padding}}" cols="${cols//nl/\\n${padding}${zws}}"
fi fi
} }
...@@ -2141,6 +2141,7 @@ getimage() { ...@@ -2141,6 +2141,7 @@ getimage() {
return return
else else
clear clear
zws="​ "
fi fi
# Get terminal lines and columns # Get terminal lines and columns
...@@ -2415,7 +2416,7 @@ info() { ...@@ -2415,7 +2416,7 @@ info() {
[ -z "$2" ] && string="${string/*: }" [ -z "$2" ] && string="${string/*: }"
# Print the string # Print the string
printf "%b%s\n" "${padding}${string}${reset} " printf "%b%s\n" "${padding}${zws}${string}${reset} "
# Calculate info height # Calculate info height
info_height="$((info_height+=1))" info_height="$((info_height+=1))"
...@@ -2450,7 +2451,7 @@ prin() { ...@@ -2450,7 +2451,7 @@ prin() {
string="$(trim "$string")" string="$(trim "$string")"
# Print the info # Print the info
printf "%b%s\n" "${padding}${string}${reset} " printf "%b%s\n" "${padding}${zws}${string}${reset} "
# Calculate info height # Calculate info height
info_height="$((info_height+=1))" info_height="$((info_height+=1))"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment