search: when looking for whole words, examine the entire line
This fixes https://savannah.gnu.org/bugs/?47933.master
parent
0cc3da5d5e
commit
18bdde4aa4
|
@ -324,6 +324,11 @@ int findnextstr(
|
||||||
if (is_separate_word(found - fileptr->data, found_len,
|
if (is_separate_word(found - fileptr->data, found_len,
|
||||||
fileptr->data))
|
fileptr->data))
|
||||||
break;
|
break;
|
||||||
|
else {
|
||||||
|
/* Maybe there is a whole word in the rest of the line. */
|
||||||
|
rev_start = found + 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue