Commit 18bdde4a authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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

This fixes https://savannah.gnu.org/bugs/?47933.
No related merge requests found
Showing with 5 additions and 0 deletions
+5 -0
...@@ -324,6 +324,11 @@ int findnextstr( ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment