From 273d967324335f39d26afcf28f6b30c9e9fc782d Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 26 Mar 2022 17:57:50 +0100 Subject: [PATCH] Revert "avoid redraw when there's no change" This reverts commit 6818e07291f3b2913e687c8ec3d3fe4711724050. This broke keys such as ^W to delete-backward-word --- dmenu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dmenu.c b/dmenu.c index 4f485ce..0293dac 100644 --- a/dmenu.c +++ b/dmenu.c @@ -503,9 +503,8 @@ keypress(XKeyEvent *ev) switch(ksym) { default: insert: - if (iscntrl((unsigned char)*buf)) - return; - insert(buf, len); + if (!iscntrl(*buf)) + insert(buf, len); break; case XK_Delete: case XK_KP_Delete: