From db36ec1ccfa3543ea6a2d0063242a127196c6748 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Mon, 4 Jan 2021 01:06:33 -0500 Subject: [PATCH] Pop a message if the search fails. Fixes #11441 --- src/BufferView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; }