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 } else
d->cursor_.setSelection(d->cursor_, length); d->cursor_.setSelection(d->cursor_, length);
} }
showCursor();
} }

View File

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