mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Find-next fallback to search dialog when no string was entered before.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26573 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e63a6bc89a
commit
42693547f7
@ -1188,6 +1188,10 @@ bool BufferView::dispatch(FuncRequest const & cmd)
|
||||
FuncRequest req = cmd;
|
||||
if (cmd.argument().empty() && !d->search_request_cache_.argument().empty())
|
||||
req = d->search_request_cache_;
|
||||
if (req.argument().empty()) {
|
||||
theLyXFunc().dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace"));
|
||||
break;
|
||||
}
|
||||
if (find(this, req))
|
||||
showCursor();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user