diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-26 17:57:50 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-26 17:57:50 +0100 |
commit | 31fa07b9849b0ffbf4b7efb55943f466b3ff160f (patch) | |
tree | 884cebe5dc68242733e9a8e916fc16932e695793 | |
parent | 6818e07291f3b2913e687c8ec3d3fe4711724050 (diff) |
Revert "avoid redraw when there's no change"
This reverts commit 6818e07291f3b2913e687c8ec3d3fe4711724050.
This broke keys such as ^W to delete-backward-word
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -415,9 +415,8 @@ keypress(XKeyEvent *ev) | |||
415 | switch(ksym) { | 415 | switch(ksym) { |
416 | default: | 416 | default: |
417 | insert: | 417 | insert: |
418 | if (iscntrl((unsigned char)*buf)) | 418 | if (!iscntrl(*buf)) |
419 | return; | 419 | insert(buf, len); |
420 | insert(buf, len); | ||
421 | break; | 420 | break; |
422 | case XK_Delete: | 421 | case XK_Delete: |
423 | case XK_KP_Delete: | 422 | case XK_KP_Delete: |