search: when looking for whole words, examine the entire line

This fixes https://savannah.gnu.org/bugs/?47933.
master
Benno Schulenberg 2016-05-16 13:12:33 +02:00
parent 0cc3da5d5e
commit 18bdde4aa4
1 changed files with 5 additions and 0 deletions

View File

@ -324,6 +324,11 @@ int findnextstr(
if (is_separate_word(found - fileptr->data, found_len,
fileptr->data))
break;
else {
/* Maybe there is a whole word in the rest of the line. */
rev_start = found + 1;
continue;
}
} else
#endif
break;