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