all repos — dmenu @ 225cd764c321b3c33f6da892a7599e4e8d86ab85

my build of dmenu

applied hotfix of sander
arg@mig29 unknown
Thu, 14 Dec 2006 09:30:23 +0100
commit

225cd764c321b3c33f6da892a7599e4e8d86ab85

parent

279966a16f32c60f698bf70161c243c4cd1f1c5e

2 files changed, 14 insertions(+), 10 deletions(-)

jump to
M config.mkconfig.mk

@@ -1,5 +1,5 @@

# dmenu version -VERSION = 1.7 +VERSION = 1.7.1 # Customize below to fit your system
M main.cmain.c

@@ -200,11 +200,13 @@ match(text);

} break; case XK_End: + if(!sel) + return; while(next) { sel = curr = next; calcoffsets(); } - while(sel->right) + while(sel && sel->right) sel = sel->right; break; case XK_Escape:

@@ -212,6 +214,8 @@ ret = 1;

running = False; break; case XK_Home: + if(!item) + return; sel = curr = item; calcoffsets(); break;

@@ -225,16 +229,16 @@ calcoffsets();

} break; case XK_Next: - if(next) { - sel = curr = next; - calcoffsets(); - } + if(!next) + return; + sel = curr = next; + calcoffsets(); break; case XK_Prior: - if(prev) { - sel = curr = prev; - calcoffsets(); - } + if(!prev) + return; + sel = curr = prev; + calcoffsets(); break; case XK_Return: if((e->state & ShiftMask) && text)