From 3c366bd73d1812845b0afc185ccaba9bbc871854 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Sat, 11 Sep 2010 13:37:01 +0100 Subject: update to libdc, fixed utf8 bug --- dmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmenu.c') diff --git a/dmenu.c b/dmenu.c index 9dd0363..908f548 100644 --- a/dmenu.c +++ b/dmenu.c @@ -10,7 +10,7 @@ #ifdef XINERAMA #include #endif -#include +#include #define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) @@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) { } switch(ksym) { default: - if(isprint(*buf)) + if(!iscntrl(*buf)) insert(buf, strlen(buf)); break; case XK_Delete: -- cgit v1.2.3-13-gbd6f