The branch, master, has been updated.

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

commit 0082d183b34551fb63251f7e703429c87247328d
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 73700cb..d6df0ef 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);
 

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

Summary of changes:
 src/lyxfind.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to