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
/* 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);