From: Richard Kimberly Heck Date: Mon, 4 Jan 2021 06:06:33 +0000 (-0500) Subject: Pop a message if the search fails. Fixes #11441 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=db36ec1ccfa3543ea6a2d0063242a127196c6748;p=features.git Pop a message if the search fails. Fixes #11441 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 758a9928f1..681e38e2ca 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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; }