]> git.lyx.org Git - features.git/commitdiff
Pop a message if the search fails. Fixes #11441
authorRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 4 Jan 2021 06:06:33 +0000 (01:06 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 4 Jan 2021 06:06:33 +0000 (01:06 -0500)
src/BufferView.cpp

index 758a9928f16386fd0ec3ae0ed018fd66cf12d756..681e38e2ca5e7e8a0652b114e0b3340608893556 100644 (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;
        }