mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Pop a message if the search fails. Fixes #11441
This commit is contained in:
parent
7ad9e2ab49
commit
db36ec1ccf
@ -1624,6 +1624,8 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
bool found = lyxfind(this, FuncRequest(LFUN_WORD_FIND, data));
|
||||
if (found)
|
||||
dr.screenUpdate(Update::Force | Update::FitCursor);
|
||||
else
|
||||
dr.setMessage(_("Search string not found!"));
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1637,6 +1639,8 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
}
|
||||
if (lyxfind(this, req))
|
||||
dr.screenUpdate(Update::Force | Update::FitCursor);
|
||||
else
|
||||
dr.setMessage(_("Search string not found!"));
|
||||
|
||||
d->search_request_cache_ = req;
|
||||
break;
|
||||
@ -1660,6 +1664,8 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
dr.forceBufferUpdate();
|
||||
dr.screenUpdate(Update::Force | Update::FitCursor);
|
||||
}
|
||||
else
|
||||
dr.setMessage(_("Search string not found!"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user