Include title for the width of the menu.

This commit is contained in:
nicm 2020-05-25 11:59:50 +00:00
parent 3a5219c6d0
commit 26e8e467e8

1
menu.c
View File

@ -111,6 +111,7 @@ menu_create(const char *title)
menu = xcalloc(1, sizeof *menu);
menu->title = xstrdup(title);
menu->width = format_width(title);
return (menu);
}