Let's assume you want to search for a word "in" within a document in Okular. To do that you enter " in " into the search field (with surrounding spaces). While searching forward works fine, searching for previous matches seems to ignore surrounding spaces, thus producing results, where "in" is just a part of a word.
Steps to Reproduce:
1. Open the URL above in Okular.
2. Search for " in ". The first match is at page 2.
3. Click Next. You are now at page 6.
4. Click Previous.
You are still at page 6, and the search result doesn't match the search query.
Okular should have found the first match at page 2.
I'm using Okular 0.10.5 as in Debian squeeze. Okular 0.14.3 was tested and is affected too. Newer versions were not tested.
Git commit 2002e0a4b0ae5408ea0ba9ff63243fb45940d1ca by Albert Astals Cid.
Committed on 12/12/2012 at 23:39.
Pushed by aacid into branch 'KDE/4.9'.
Do not ignore spaces on backwards search
This ports a change we made to the forward search 4 years ago...
7183c172c22933387359edee33755dc6b7b0af26 for more reference
M +0 -10 core/textpage.cpp