lyxfind.cpp: fix spacing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-12-07 17:18:30 +00:00
parent 4913bb1195
commit 74abd44fb1

View File

@ -907,7 +907,7 @@ bool findAdv(BufferView * bv, FindAdvOptions const & opt)
int match_len = 0; int match_len = 0;
if (opt.search.empty()) { if (opt.search.empty()) {
bv->message(_("Search text is empty !")); bv->message(_("Search text is empty!"));
return false; return false;
} }
// if (! bv->buffer()) { // if (! bv->buffer()) {
@ -923,18 +923,18 @@ bool findAdv(BufferView * bv, FindAdvOptions const & opt)
match_len = findBackwardsAdv(cur, matchAdv); match_len = findBackwardsAdv(cur, matchAdv);
} catch (...) { } catch (...) {
// This may only be raised by boost::regex() // This may only be raised by boost::regex()
bv->message(_("Invalid regular expression !")); bv->message(_("Invalid regular expression!"));
return false; return false;
} }
if (match_len == 0) { if (match_len == 0) {
bv->message(_("Match not found !")); bv->message(_("Match not found!"));
return false; return false;
} }
LYXERR(Debug::DEBUG, "Putting selection at " << cur << " with len: " << match_len); LYXERR(Debug::DEBUG, "Putting selection at " << cur << " with len: " << match_len);
bv->putSelectionAt(cur, match_len, ! opt.forward); bv->putSelectionAt(cur, match_len, ! opt.forward);
bv->message(_("Match found !")); bv->message(_("Match found!"));
//bv->update(); //bv->update();
return true; return true;