<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Incorrect search results"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124442">124442</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Incorrect search results
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.3.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>raykowj@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi All,

Stumbled across this while doing some examples for <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Better visibility of not found search term"
   href="show_bug.cgi?id=106723">bug 106723</a>.

This seems to only happen when the search string is found at the beginning or
end of a document and no other places in the document.

Steps to repro incorrect search result at end of a document:

1) Open a new document in Writer and enter "This is a sentence to test search
not found bug"
2) Open the find toolbar Menu > View > Toolbars > Find or Ctrl+F
3) In the find text box enter "bug" without quotes
4) Click on the "Find Next" button
"Reached the end of the document" is displayed in the find bar message area and
"bug" is selected in the document.
5) Click on the "Find Previous" button

Results: "Search key not found" is display in the find bar messages area.

Expected results: "Reached the begining of the document" should be displayed in
the find bar message area as can be seen by clicking on "Find Previous" button
after the incorrect "Search key not found" message is displayed.

Steps to repro incorrect search result at beginning of a document:

1) In the find text box enter "This" without quotes
2) Click on the "Find Previous" button
3) Click on the "Find Next" button

Results: "Search key not found" is display in the find bar messages area.

Expected results: "Reached the end of the document" should be displayed in the
find bar message area as can be seen by clicking on "Find Next" button after
the incorrect "Search key not found" message is displayed.


I repro back to version 5.2.8.0.0+</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>