Ensure that the cursor is visible when searching text. Should fix the spellchecker and a few other bugs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22926 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-10 19:05:09 +00:00
parent 02e8322c79
commit 149778a0a5
2 changed files with 4 additions and 5 deletions

View File

@ -1730,6 +1730,7 @@ void BufferView::putSelectionAt(DocIterator const & cur,
} else
d->cursor_.setSelection(d->cursor_, length);
}
showCursor();
}

View File

@ -307,11 +307,9 @@ void replace(BufferView * bv, FuncRequest const & ev, bool has_deleted)
} else {
// if we have deleted characters, we do not replace at all, but
// rather search for the next occurence
bool const found = find(bv, search,
casesensitive, matchword, forward);
if (!found)
// emit message signal.
if (find(bv, search, casesensitive, matchword, forward))
bv->showCursor();
else
bv->message(_("String not found!"));
}
}