Commit: 93345cd8ca6513263f54c6a21c8666020171d9b0
Parent: 335417da3ab7f407790931810afab4354d6b4abe
Author: Hiltjo Posthuma
Date: Sat, 26 Mar 2022 17:57:50 +0100
Revert "avoid redraw when there's no change"
This reverts commit 6818e07291f3b2913e687c8ec3d3fe4711724050.
This broke keys such as ^W to delete-backward-word
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
@@ -524,9 +524,8 @@ keypress_pin(XKeyEvent *ev, KeySym ksym, char* buf, int len) {
return 1;
break;
default:
- if (iscntrl((unsigned char)*buf))
- return 1;
- insert(buf, len);
+ if (!iscntrl(*buf))
+ insert(buf, len);
}
return 0;