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)
bv->toggleSelection();
text->clearSelection();
-
+
SearchResult result = forward ?
SearchForward(bv, text, searchstr, casesens, matchwrd) :
SearchBackward(bv, text, searchstr, casesens, matchwrd);
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)