stew

a monorepo of some sort
Log | Files | Refs

commit 8fd86fbed1eacfc1953696dababa9edc42ca1e37
parent f9999dc4de71128e720cc6033402cf925f6245dd
Author: rpa <rpa@laika>
Date:   Sun, 18 Dec 2022 15:42:51 +0000

tabul: fix fixed editfield length

Diffstat:
Msrc/tabul/tabul.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tabul/tabul.c b/src/tabul/tabul.c @@ -135,7 +135,7 @@ _cell(Image *screen, Rectangle r, Image *brd, Image *bg, Image *fg, int t, Font draw(screen, r, brd, nil, ZP); draw(screen, r2, bg, nil, ZP); if (text != nil) { - int n = 16;//strlen(text); + int n = strlen(text); while (stringnwidth(font, text, n) > Dx(r2)) n--; stringn(screen, addpt(r2.min, Pt(1,(Dy(r2) - font->height)/2)), fg, ZP, font, text, n); }