Fix wide glyphs breaking "nowrap" mode
Consider the following example: printf '\e[?7l';\ for i in $(seq $(($(tput cols) - 1))); do printf a; done;\ printf '🙈\n';\ printf '\e[?7h' Even though MODE_WRAP has been disabled, the emoji appeared on the next line. This patch keeps wide glyphs on the same line and moves them to the right-most possible position. ref. https://git.suckless.org/st/commit/8abe4bcb41aa7fda0ae00823f6a20271124150db.html
This commit is contained in:
parent
6ade70c726
commit
3cbaecfa31