Change history search to use current string

The other way only uses the first word instead of the entire string. I believe this fixes this error.
Merge pull request #2 from D-Land/patch-2

Change history search to use current string