better if a key doesn't have to be pressed

This commit is contained in:
speedie 2023-05-07 14:11:57 +02:00
parent 5872c638f3
commit 445351c09a

View file

@ -32,15 +32,6 @@ void eventloop(void) {
grabfocus();
break;
case KeyPress: // read key array and call functions
if (listfile) {
readfile();
if (listchanged) {
match();
drawmenu();
}
}
if (incremental) {
puts(text);
fflush(stdout);
@ -62,6 +53,15 @@ void eventloop(void) {
break;
}
if (listfile) {
readfile();
if (listchanged) {
match();
drawmenu();
}
}
// redraw image on X11 event
#if USEIMAGE
if (!noimg) {