projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f081821
)
fixed linking bug (thanks Jacob Nixdorf) & iscntrl corner case
author
Connor Lane Smith
<cls@lubutu.com>
Mon, 13 Sep 2010 13:22:02 +0000
(14:22 +0100)
committer
Connor Lane Smith
<cls@lubutu.com>
Mon, 13 Sep 2010 13:22:02 +0000
(14:22 +0100)
config.mk
patch
|
blob
|
history
dmenu.c
patch
|
blob
|
history
diff --git
a/config.mk
b/config.mk
index 03212d553ffcb86a9bf5b371c770c36ccff969fd..6e1b95fe5963ec82ee85e4358182c3b027092d8f 100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-16,7
+16,7
@@
XINERAMAFLAGS = -DXINERAMA
# includes and libs
INCS = -I${X11INC}
-LIBS = -L${X11LIB} -ld
raw
-lX11 ${XINERAMALIBS}
+LIBS = -L${X11LIB} -ld
c
-lX11 ${XINERAMALIBS}
# flags
CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
diff --git
a/dmenu.c
b/dmenu.c
index 0d01cbc916b5527fdc404d2db9f34c7233aaaef4..908f5481cc7fa7a3db73077f3e827e7d2dc2286d 100644
(file)
--- 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: