Merge pull request #716 from dylanaraps/zws_fix

W3m: Fix zero width space outputting garbage.
This commit is contained in:
Dylan Araps 2017-05-09 07:53:33 +10:00 committed by GitHub
commit 8e6cd99d3d

View file

@ -2533,7 +2533,7 @@ display_image() {
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."
zws=" "
zws="\xE2\x80\x8B\x20"
;;
esac
}
@ -2740,11 +2740,11 @@ get_underline() {
get_line_break() {
# Print it directly.
printf "%s\n" "${zws}"
printf "%b\n" "${zws}"
# Calculate info height.
((++info_height))
line_breaks+=$'\n'
line_breaks+="\n"
# Tell info() that we printed manually.
prin=1