summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index aaa1287e..c770cd7d 100644
--- a/menu.c
+++ b/menu.c
@@ -81,6 +81,8 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
menu->count--;
return;
}
+ if (c->tty.sx <= 4)
+ return;
max_width = c->tty.sx - 4;
slen = strlen(s);