better if a key doesn't have to be pressed
This commit is contained in:
parent
5872c638f3
commit
445351c09a
18
libs/event.c
18
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) {
|
||||
|
|
Loading…
Reference in a new issue