neodotfiles/user/.config/suckless/dmenu/patch/center.c

8 lines
155 B
C
Raw Normal View History

2022-06-07 02:15:35 +00:00
static int
max_textw(void)
{
int len = 0;
for (struct item *item = items; item && item->text; item++)
len = MAX(TEXTW(item->text), len);
return len;
}