fixed linking bug (thanks Jacob Nixdorf) & iscntrl corner case
This commit is contained in:
parent
f0818217b3
commit
610a0a8d12
2 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
2
dmenu.c
2
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:
|
||||
|
|
Loading…
Reference in a new issue