mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
02e8322c79
commit
149778a0a5
@ -1730,6 +1730,7 @@ void BufferView::putSelectionAt(DocIterator const & cur,
|
||||
} else
|
||||
d->cursor_.setSelection(d->cursor_, length);
|
||||
}
|
||||
showCursor();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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!"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user