]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
GuiTabular: disabling is now done on textChanged()
[lyx.git] / src / lyxfind.cpp
index 73700cb4fcef54fc898044fb153f6ff8ff170ede..d6df0ef78009aef22a93fb10631d08415fc74da7 100644 (file)
@@ -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);