]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
redraw fix 1.
[lyx.git] / src / lyxfind.C
index 039d34985d035b3b5681906f84b4cb6380a7db59..0b2a5c5906f44411e41f7fcb3f07e798ebd5982f 100644 (file)
@@ -96,12 +96,10 @@ int LyXReplace(BufferView * bv,
                        found = LyXFind(bv, searchstr, fw, casesens, matchwrd);
        } while (!once && replaceall && found);
 
-       if (bv->focus())
-               bv->showCursor();
-
        return replace_count;
 }
 
+
 bool LyXFind(BufferView * bv,
             string const & searchstr, bool forward,
             bool casesens, bool matchwrd)
@@ -137,7 +135,7 @@ bool LyXFind(BufferView * bv,
 
        bv->toggleSelection();
        text->clearSelection();
-       
+
        SearchResult result = forward ?
                SearchForward(bv, text, searchstr, casesens, matchwrd) :
                SearchBackward(bv, text, searchstr, casesens, matchwrd);
@@ -157,12 +155,11 @@ bool LyXFind(BufferView * bv,
                bv->update(text, BufferView::SELECT|BufferView::FITCUR);
                found = false;
        }
-       if (result != SR_FOUND_NOUPDATE && bv->focus())
-               bv->showCursor();
 
        return found;
 }
 
+
 SearchResult LyXFind(BufferView * bv, LyXText * text,
                     string const & searchstr, bool forward,
                     bool casesens, bool matchwrd)