The branch, 2.0.x, has been updated.

- Log -----------------------------------------------------------------

commit 46aa8f32ecd60d0a5422aa2fe0b4d857ee9c0448
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Fri Feb 22 11:06:25 2013 +0100

    Fix confusing behavior in search when changing directions (bug 8543)

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 50a2a57..f74da52 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -154,7 +154,9 @@ bool findOne(BufferView * bv, docstring const & searchstr,
        if (!searchAllowed(searchstr))
                return false;
 
-       DocIterator cur = bv->cursor();
+       DocIterator cur = forward 
+               ? bv->cursor().selectionEnd() 
+               : bv->cursor().selectionBegin();
 
        MatchString const match(searchstr, case_sens, whole);
 
diff --git a/status.20x b/status.20x
index b1f0ba3..d00dbe3 100644
--- a/status.20x
+++ b/status.20x
@@ -130,6 +130,8 @@ What's new
 
 - Fix a few selection bugs in tabular (bugs 4981, 7988).
 
+- Fix confusing behavior in search when changing directions (bug 8543)
+
 - Fix several issues when using multicolumns/multirows and decimal alignment in
   table cells (bug 8285).
 

-----------------------------------------------------------------------

Summary of changes:
 src/lyxfind.cpp |    4 +++-
 status.20x      |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to