Include title for the width of the menu.

pull/2270/head
nicm 2020-05-25 11:59:50 +00:00
parent 3a5219c6d0
commit 26e8e467e8
1 changed files with 1 additions and 0 deletions

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);
}