Pop a message if the search fails. Fixes #11441

This commit is contained in:
Richard Kimberly Heck 2021-01-04 01:06:33 -05:00
parent 7ad9e2ab49
commit db36ec1ccf

View File

@ -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;
}