~sircmpwn/most

2e2bbd85ccf4dd9358d6a9a1b03d7ebd89cfa76f — Curtis Arthaud 3 months ago 61015a4 master
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;
		};
	};