diff --git a/ChangeLog b/ChangeLog index e87b2851d1c1ecb9b3d9cbb7977d26711c40f0d4..231cbe4bbd8a62c46e16ac395dba2317389dfd49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ finding the first occurrence twice. And delete the piece of dead code that was meant to do this. This fixes Savannah bug #47188. * src/search.c (findnextstr): Clean up and rename a variable. + * src/search.c (findnextstr): Poll the keyboard once per second. 2016-03-22 Thomas Rosenau <thomasr@fantasymail.de> * configure.ac, src/*.c: Check for the existence of the REG_ENHANCED diff --git a/src/search.c b/src/search.c index af03f2ba4df72a022ce047d7c7e43389dab96a06..6a43f046ad3c8d6803a3b2ace0fe316d79a445dd 100644 --- a/src/search.c +++ b/src/search.c @@ -281,7 +281,8 @@ bool findnextstr( /* Start searching through the lines, looking for the needle. */ while (TRUE) { - if (time(NULL) - lastkbcheck > 1) { + /* Glance at the keyboard once every second. */ + if (time(NULL) - lastkbcheck > 0) { int input = parse_kbinput(edit); lastkbcheck = time(NULL);