diff --git a/libs/event.c b/libs/event.c index e41b1e3..863356c 100644 --- a/libs/event.c +++ b/libs/event.c @@ -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) {