Commit 2a464cb0 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix error I made when porting over DB's refactored search code: the

strstr() call used in forward case-sensitive searches was using the
wrong variable, which made all such searches fail


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1689 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 35557c55
Showing with 1 addition and 1 deletion
+1 -1
......@@ -246,7 +246,7 @@ const char *strstrwrapper(const char *haystack, const char *needle,
return revstrstr(haystack, needle, start);
else
#endif
return strstr(haystack, needle);
return strstr(start, needle);
}
#endif /* !DISABLE_SPELLER || !NANO_SMALL */
#ifndef NANO_SMALL
......
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