aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-09-13 14:22:02 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-09-13 14:22:02 +0100
commit610a0a8d126b5caa7fec60632c999ca326ca2eff (patch)
tree437997dd4bc4fa8be961b031e7db25a8f18e11ba
parentf0818217b3d2d0e527f11a5708badf6ddc72e99d (diff)
fixed linking bug (thanks Jacob Nixdorf) & iscntrl corner case
-rw-r--r--config.mk2
-rw-r--r--dmenu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 03212d5..6e1b95f 100644
--- a/config.mk
+++ b/config.mk
@@ -16,7 +16,7 @@ XINERAMAFLAGS = -DXINERAMA
16 16
17# includes and libs 17# includes and libs
18INCS = -I${X11INC} 18INCS = -I${X11INC}
19LIBS = -L${X11LIB} -ldraw -lX11 ${XINERAMALIBS} 19LIBS = -L${X11LIB} -ldc -lX11 ${XINERAMALIBS}
20 20
21# flags 21# flags
22CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} 22CPPFLAGS = -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) {
230 } 230 }
231 switch(ksym) { 231 switch(ksym) {
232 default: 232 default:
233 if(*buf) 233 if(!iscntrl(*buf))
234 insert(buf, strlen(buf)); 234 insert(buf, strlen(buf));
235 break; 235 break;
236 case XK_Delete: 236 case XK_Delete: