diff --git a/awesome-menu.c b/awesome-menu.c index ee75a5d6e..332826e67 100644 --- a/awesome-menu.c +++ b/awesome-menu.c @@ -383,7 +383,7 @@ redraw(void) geometry.width -= len; prompt_len = geometry.x; - for(item = globalconf.items; item; item = item->next) + for(item = globalconf.items; item && geometry.width > 0; item = item->next) if(item->match) { len = MARGIN + draw_textwidth(globalconf.display, globalconf.font, item->data);