Commit 1405c47a authored by Ricardo Silva Veloso's avatar Ricardo Silva Veloso Committed by Christian Hergert
Browse files

Don't format word slices

parent 542d36c1
......@@ -227,7 +227,8 @@ retry:
return found;
/* end of the string, always valid */
if (*(found-1) == ' ' && *(found+1) == ' ') {
if ((*(found-1) == ' ' && *(found+1) == ' ') ||
(*(found-1) != ' ' && *(found+1) != ' ')) {
haystack_new = found+1;
goto retry;
}
......
Supports Markdown
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