wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 54e546e599fa0b37ec82a23233011703ed4cee6b
parent 2c0705d1aee29b5028c291f4656a6ec5108f1ed0
Author: Kris Maglione <jg@suckless.org>
Date:   Fri, 29 May 2009 16:03:54 -0400

Don't die when no menu choices are provided.

Diffstat:
cmd/menu/menu.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmd/menu/menu.c b/cmd/menu/menu.c @@ -157,6 +157,8 @@ _menu_draw(bool draw) { matchstart = matchidx; else if(matchidx == matchstart->prev) matchend = matchidx; + if (matchend == nil) + matchend = matchstart; if(matchend == matchstart->prev && matchstart != matchidx) { n = itemoff;