measure rune width Signed-off-by: Curtis Arthaud <uku82@gmx.fr>
1 files changed, 1 insertions(+), 3 deletions(-) M cmd/most/main.ha
M cmd/most/main.ha => cmd/most/main.ha +1 -3
@@ 233,12 233,10 @@ fn drawline(state: *state) (void | vt::error) = { vt::print(state.term, rn)?; - // TODO: measure dimensions properly - // - measure unicode sequences if (rn == '\t') { col += 8; } else { - col += 1; + col += vt::rune_width(rn): size; }; };