commit 31fa07b9849b0ffbf4b7efb55943f466b3ff160f
Author:     Hiltjo Posthuma <[email protected]>
AuthorDate: Sat Mar 26 17:57:50 2022 +0100
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Sat Mar 26 17:57:50 2022 +0100

    Revert "avoid redraw when there's no change"
    
    This reverts commit 6818e07291f3b2913e687c8ec3d3fe4711724050.
    
    This broke keys such as ^W to delete-backward-word

diff --git a/dmenu.c b/dmenu.c
index 19f6385..085dc29 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -415,9 +415,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:

Reply via email to