summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-25 11:59:50 +0000
committernicm <nicm>2020-05-25 11:59:50 +0000
commit26e8e467e8e4d3e4f4596b9ce50832735cdc4d50 (patch)
tree18aad5040dd8ae0c3cb7f76a6f77d4affd83872c /menu.c
parent3a5219c6d0c1a85ac3cf7a6b938f724650001a4d (diff)
Include title for the width of the menu.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 7f6933c5..16374115 100644
--- a/menu.c
+++ b/menu.c
@@ -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);
}