~sircmpwn/hare-vt

1d5cf1699de68dac129aa4e20e9f701f952938b5 — Curtis Arthaud a month ago ec9163d
export rune_width

Signed-off-by: Curtis Arthaud <uku82@gmx.fr>
1 files changed, 2 insertions(+), 1 deletions(-)

M vt/unicode.ha
M vt/unicode.ha => vt/unicode.ha +2 -1
@@ 254,7 254,8 @@ fn mk_wcwidth(ucs: u32) int = {
	return 1;
};

fn rune_width(rn: rune) int = {
// Report the column width of an ISO 10646 character
export fn rune_width(rn: rune) int = {
	const ucs = rn: u32;
	if (table_match(fullwidth, ucs)) {
		return 1;