From: Connor Lane Smith Date: Mon, 13 Sep 2010 13:22:02 +0000 (+0100) Subject: fixed linking bug (thanks Jacob Nixdorf) & iscntrl corner case X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=610a0a8d126b5caa7fec60632c999ca326ca2eff;p=dmenu.git fixed linking bug (thanks Jacob Nixdorf) & iscntrl corner case --- diff --git a/config.mk b/config.mk index 03212d5..6e1b95f 100644 --- a/config.mk +++ b/config.mk @@ -16,7 +16,7 @@ XINERAMAFLAGS = -DXINERAMA # includes and libs INCS = -I${X11INC} -LIBS = -L${X11LIB} -ldraw -lX11 ${XINERAMALIBS} +LIBS = -L${X11LIB} -ldc -lX11 ${XINERAMALIBS} # flags CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} diff --git a/dmenu.c b/dmenu.c index 0d01cbc..908f548 100644 --- a/dmenu.c +++ b/dmenu.c @@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) { } switch(ksym) { default: - if(*buf) + if(!iscntrl(*buf)) insert(buf, strlen(buf)); break; case XK_Delete: