Revert "avoid redraw when there's no change"

This reverts commit 6818e07291f3b2913e687c8ec3d3fe4711724050.

This broke keys such as ^W to delete-backward-word
main
Hiltjo Posthuma 2022-03-26 17:57:50 +01:00 committed by Chewing_Bever
parent ad50c7b741
commit 273d967324
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 3 deletions

View File

@ -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: