Only use the whole text as search snippet when it's the first match
Fix the snippet search to continue after the previous match
Merge pull request #545 from splitbrain/snippet_fixes

Snippet fixes