Merge pull request #716 from dylanaraps/zws_fix
W3m: Fix zero width space outputting garbage.
This commit is contained in:
commit
8e6cd99d3d
6
neofetch
6
neofetch
|
@ -2533,7 +2533,7 @@ display_image() {
|
||||||
printf "%b\n" "0;1;$xoffset;$yoffset;$width;$height;;;;;$image\n4;\n3;" |\
|
printf "%b\n" "0;1;$xoffset;$yoffset;$width;$height;;;;;$image\n4;\n3;" |\
|
||||||
"${w3m_img_path:-false}" -bg "$background_color" >/dev/null & 2>&1 || to_off "Image: w3m-img failed to display the image."
|
"${w3m_img_path:-false}" -bg "$background_color" >/dev/null & 2>&1 || to_off "Image: w3m-img failed to display the image."
|
||||||
|
|
||||||
zws=" "
|
zws="\xE2\x80\x8B\x20"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -2740,11 +2740,11 @@ get_underline() {
|
||||||
|
|
||||||
get_line_break() {
|
get_line_break() {
|
||||||
# Print it directly.
|
# Print it directly.
|
||||||
printf "%s\n" "${zws}"
|
printf "%b\n" "${zws}"
|
||||||
|
|
||||||
# Calculate info height.
|
# Calculate info height.
|
||||||
((++info_height))
|
((++info_height))
|
||||||
line_breaks+=$'\n'
|
line_breaks+="\n"
|
||||||
|
|
||||||
# Tell info() that we printed manually.
|
# Tell info() that we printed manually.
|
||||||
prin=1
|
prin=1
|
||||||
|
|
Reference in New Issue