[LyX/master] Pop a message if the search fails. Fixes #11441
Richard Kimberly Heck
rikiheck at lyx.org
Mon Jan 4 06:06:27 UTC 2021
commit db36ec1ccfa3543ea6a2d0063242a127196c6748
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Mon Jan 4 01:06:33 2021 -0500
Pop a message if the search fails. Fixes #11441
---
src/BufferView.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 758a992..681e38e 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;
}
More information about the lyx-cvs
mailing list